Function at 0x493fc0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x500df8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x10], eax
call fcn.00409670
test eax, eax
jne 0x494016
xor al, al
jmp 0x494212
lea ecx, [ebp + 0x30]
call fcn.00408f40
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00409460
mov esi, eax
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x494038
mov eax, dword [esi]
cmp word [eax], 0x40
mov ecx, edi
jne 0x49406f
call fcn.00409670
dec eax
lea ecx, [ebp + 0x18]
push eax
mov edx, edi
call fcn.00427220
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.00408e70
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00408e60
jmp 0x494090
call fcn.00409460
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x494090
mov eax, esi
cmp edx, 8
jb 0x494084
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.00409680
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.004ccc90
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.00408da0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x49410f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ca81c
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.00408da0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.00409e30
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.00409680
push esi
call fcn.004ca0a6
add esp, 4
jmp 0x494128
lea eax, [ebp + 0x48]
push eax
call fcn.00409e30
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00409680
push 0x51e884
lea ecx, [ebp]
call fcn.00408ef0
mov byte [ebp - 4], 2
lea eax, [ebp]
push 0
push eax
lea ecx, [ebp + 0x30]
call fcn.00408d50
mov esi, eax
cmp esi, 0xffffffff
je 0x4941c8
push esi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.004271b0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.00408e70
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00408e60
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4941c4
lea ecx, [ebp + 0x30]
call fcn.00409670
mov edx, eax
lea ecx, [ebp]
sub edx, esi
call fcn.00409670
sub edx, eax
lea ecx, [ebp + 0x18]
push edx
lea edx, [ebp + 0x30]
call fcn.00427220
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.00408da0
xor edx, edx
mov ecx, eax
call fcn.00426b10
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00408e60
mov bl, 1
jmp 0x4941f5
lea ecx, [ebp + 0x30]
call fcn.00409460
cmp ebx, eax
je 0x4941ee
call fcn.00409460
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4941e3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00409680
cmp dword [ebp - 0x10], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00408e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00408e60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004c9ebd
lea esp, [ebp + 0x254]
pop ebp
ret