Function at 0x4f7be0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x52b137
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov esi, edx
cmp dword [ecx + 0x10], 0
mov eax, dword [esp + 0x284]
mov dword [esp + 0x18], eax
jne 0x4f7c35
xor al, al
jmp 0x4f7fa6
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x27c], eax
cmp dword [ecx + 0x14], 8
jb 0x4f7c6d
mov eax, dword [ecx]
jmp 0x4f7c6f
mov eax, ecx
cmp word [eax], 0x40
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jne 0x4f7d06
mov eax, dword [ecx + 0x10]
mov edx, ecx
dec eax
lea ecx, [esp + 0x34]
push eax
call fcn.0042fe90
add esp, 4
mov ebx, eax
mov byte [esp + 0x27c], 1
lea eax, [esp + 0x1c]
cmp eax, ebx
je 0x4f7cd5
cmp dword [esp + 0x30], 8
jb 0x4f7cb4
push dword [esp + 0x1c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00404b90
mov byte [esp + 0x27c], 0
cmp dword [esp + 0x48], 8
jb 0x4f7ced
push dword [esp + 0x34]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jmp 0x4f7d1a
lea eax, [esp + 0x1c]
cmp eax, ecx
je 0x4f7d1a
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00404c30
xor eax, eax
push 0x206
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x64]
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
cmp ebp, 0x104
jb 0x4f7dc6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x30], 8
mov ebx, eax
cmovae ecx, dword [esp + 0x1c]
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebx], 0
jne 0x4f7d9a
xor ecx, ecx
jmp 0x4f7daf
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f7da0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esp + 0x24]
call fcn.00405240
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x4f7dfe
cmp word [esp + 0x64], 0
jne 0x4f7dd2
xor ecx, ecx
jmp 0x4f7def
lea ecx, [esp + 0x64]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f7de0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x24]
call fcn.00405240
push 0x53d660
lea ecx, [esp + 0x50]
call fcn.00404840
mov byte [esp + 0x27c], 2
lea eax, [esp + 0x4c]
push dword [esp + 0x5c]
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x20]
push 0
cmovae eax, dword [esp + 0x54]
push eax
call fcn.00420110
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4f7f26
push ebp
lea edx, [esp + 0x20]
lea ecx, [esp + 0x38]
call fcn.0042fe10
add esp, 4
mov ebx, eax
mov byte [esp + 0x27c], 3
cmp esi, ebx
je 0x4f7e84
cmp dword [esi + 0x14], 8
jb 0x4f7e69
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00404b90
mov byte [esp + 0x27c], 2
cmp dword [esp + 0x48], 8
jb 0x4f7e9c
push dword [esp + 0x34]
call edi
add esp, 4
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
test esi, esi
je 0x4f7f22
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
sub eax, dword [esp + 0x5c]
lea ecx, [esp + 0x34]
sub eax, ebp
push eax
call fcn.0042fe90
add esp, 4
mov byte [esp + 0x27c], 4
lea ecx, [esp + 0x34]
cmp dword [esp + 0x48], 8
cmovae ecx, dword [esp + 0x34]
call fcn.0042f600
mov dword [esi], eax
mov byte [esp + 0x27c], 2
cmp dword [esp + 0x48], 8
jb 0x4f7f0b
push dword [esp + 0x34]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov bl, 1
jmp 0x4f7f43
lea eax, [esp + 0x1c]
cmp esi, eax
je 0x4f7f3a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404c30
mov esi, dword [esp + 0x18]
test esi, esi
sete bl
mov byte [esp + 0x27c], 0
cmp dword [esp + 0x60], 8
jb 0x4f7f5b
push dword [esp + 0x4c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x27c], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x4f7f8d
push dword [esp + 0x1c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
mov al, bl
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00505b1e
add esp, 0x26c
ret