Function at 0x10058b40
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1009d52d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28c]
mov ebp, dword [esp + 0x290]
push 0x206
xor ebx, ebx
lea edx, [esp + 0x76]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x24], eax
mov word [esp + 0x7c], cx
call fcn.10079c60
add esp, 0xc
push 0x104
lea eax, [esp + 0x74]
push eax
push str._SystemRoot__
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x10058eb3
xor ecx, ecx
lea eax, [esp + 0x70]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10058be0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.10007450
mov dword [esp + 0x284], ebx
mov edx, esi
push edx
lea eax, [esp + 0x20]
push eax
mov edi, str.System32_
call fcn.1002d500
mov byte [esp + 0x28c], 1
mov edi, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.1002d500
add esp, 0x10
mov byte [esp + 0x284], 2
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.100073a0
mov byte [esp + 0x284], 1
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x10058c62
mov edx, dword [esp + 0x3c]
push edx
call fcn.100755e2
add esp, 4
mov edi, 7
xor eax, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov byte [esp + 0x284], bl
cmp dword [esp + 0x34], esi
jb 0x10058c90
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
lea eax, [ebp + 4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x18], esi
jb 0x10058cad
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10058ced
mov dword [esp + 0x284], 0xffffffff
cmp dword [esp + 0x6c], esi
jb 0x10058cd6
mov eax, dword [esp + 0x58]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
lea eax, [ecx + 1]
jmp 0x10058eb5
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
mov edi, str.Fonts_
call fcn.1002d500
mov byte [esp + 0x28c], 3
mov edi, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.1002d500
add esp, 0x10
mov byte [esp + 0x284], 4
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.100073a0
mov byte [esp + 0x284], 3
cmp dword [esp + 0x34], esi
jb 0x10058d48
mov edx, dword [esp + 0x20]
push edx
call fcn.100755e2
add esp, 4
mov edi, 7
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
mov byte [esp + 0x284], bl
cmp dword [esp + 0x50], esi
jb 0x10058d76
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
cmp dword [ebp + 0x18], esi
jb 0x10058d90
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10058dd0
mov dword [esp + 0x284], 0xffffffff
cmp dword [esp + 0x6c], esi
jb 0x10058db9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
lea eax, [edx + 1]
jmp 0x10058eb5
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edi, str.System_
call fcn.1002d500
mov byte [esp + 0x28c], 5
mov edi, dword [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push edx
call fcn.1002d500
add esp, 0x10
mov byte [esp + 0x284], 6
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.100073a0
mov byte [esp + 0x284], 5
cmp dword [esp + 0x34], esi
jb 0x10058e2b
mov eax, dword [esp + 0x20]
push eax
call fcn.100755e2
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov byte [esp + 0x284], bl
cmp dword [esp + 0x50], esi
jb 0x10058e59
mov edx, dword [esp + 0x3c]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
cmp dword [ebp + 0x18], esi
jb 0x10058e75
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
jmp 0x10058e79
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10058e9f
mov dword [esp + 0x284], 0xffffffff
lea esi, [esp + 0x54]
call fcn.100531f0
mov eax, 1
jmp 0x10058eb5
mov dword [esp + 0x284], 0xffffffff
lea esi, [esp + 0x54]
call fcn.100531f0
xor eax, eax
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.100755ed
add esp, 0x274
ret 8