Function at 0x4937a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405568
xor eax, eax
push ebp
push 0x493b39
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov edx, dword [ebp - 4]
mov eax, 0x493b54
call fcn.004056bc
test eax, eax
je 0x49382a
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x493b54
call fcn.004056bc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004055d8
push 0x104
lea eax, [ebp - 0x115]
push eax
mov eax, dword [ebp - 4]
call fcn.00405578
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea edx, [ebp - 0x120]
xor eax, eax
call fcn.00403034
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
call fcn.0040a6a0
push dword [ebp - 0x11c]
push 0x493b60
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00405328
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x124]
call fcn.0040a6d4
push dword [ebp - 0x124]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov edx, 3
call fcn.00405438
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040a3e4
test al, al
je 0x4938dc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00405378
cmp eax, 0x105
jge 0x4938dc
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0x115]
call fcn.0040ad00
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00405328
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x5c]
call fcn.004054c4
je 0x493950
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x49391e
mov edx, dword [ebp + 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
push 2
push 0
lea eax, [ebp - 0x115]
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x58], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x5c
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00405328
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x58], 0
je 0x493b0b
xor eax, eax
push ebp
push 0x493b04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00494108
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
push eax
push 0xb00
call sub.kernel32.dll_FormatMessageA
test eax, eax
jbe 0x493af6
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004052b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
xor edi, edi
mov ebx, 1
jmp 0x493a22
mov eax, dword [ebp - 0x10]
cmp byte [eax + ebx - 1], 0x25
jne 0x493a21
mov eax, dword [ebp - 0x10]
mov al, byte [eax + ebx]
add al, 0xd0
sub al, 0xa
jae 0x493a17
mov eax, dword [ebp - 0x10]
movzx esi, byte [eax + ebx]
sub esi, 0x30
inc ebx
mov eax, dword [ebp - 0x10]
call fcn.00405378
lea edx, [ebx + 1]
cmp eax, edx
jl 0x493a0f
mov eax, dword [ebp - 0x10]
mov al, byte [eax + ebx]
add al, 0xd0
sub al, 0xa
jae 0x493a0f
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
sub eax, 0x30
mov edx, esi
add edx, edx
lea edx, [edx + edx*4]
add eax, edx
mov esi, eax
inc ebx
cmp edi, esi
jge 0x493a21
mov edi, esi
jmp 0x493a21
mov eax, dword [ebp - 0x10]
cmp byte [eax + ebx], 0x25
jne 0x493a21
inc ebx
inc ebx
mov eax, dword [ebp - 0x10]
call fcn.00405378
cmp ebx, eax
jl 0x4939bd
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00494110
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x493a4f
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x493aa8
jmp 0x493a53
pop edx
pop eax
jle 0x493aa8
push 0x493b78
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00405328
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040a6d4
push dword [ebp - 0x130]
push 0x493bac
push dword [ebp - 0x10]
push 0x493bc8
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov edx, 5
call fcn.00405438
mov byte [ebp - 5], 1
jmp 0x493af6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00494108
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
push eax
push 0x2900
call sub.kernel32.dll_FormatMessageA
test eax, eax
jbe 0x493af6
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov edx, dword [ebp - 0xc]
call fcn.004052b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493b0b
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493b40
lea eax, [ebp - 0x134]
mov edx, 7
call fcn.004050dc
lea eax, [ebp - 0x10]
call fcn.004050b8
lea eax, [ebp - 4]
call fcn.004050b8
ret