Function at 0x452df0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a609d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00403270
xor bl, bl
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x453114
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x453114
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ecx]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x4530bc
nop dword [eax + eax]
test edx, edx
js 0x45311e
cmp edx, eax
jg 0x45311e
movzx ecx, word [ecx + edx*2]
mov eax, ecx
sub eax, 0x25
je 0x452fac
sub eax, 0x36
je 0x452f9d
sub eax, 2
je 0x452f63
mov eax, ecx
mov dword [ebp - 0x20], eax
test bl, bl
je 0x452f0f
mov eax, dword [ebp - 0x10]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x45311e
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x452ee8
push esi
lea ecx, [ebp - 0x10]
call fcn.00402150
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax - 8]
jg 0x45311e
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x10]
mov word [eax + esi*2], cx
jmp 0x4530a5
mov edx, dword [edi]
mov edi, dword [edx - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x45311e
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x452f3e
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00402150
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
mov word [edx + edi*2], ax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x45311e
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
jmp 0x4530a5
lea eax, [ebp - 0x14]
xor bl, bl
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call fcn.00440c30
mov esi, eax
test esi, esi
jg 0x4530be
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4530be
push ecx
push eax
mov ecx, edi
call fcn.004021c0
jmp 0x4530a5
lea ecx, [ebp - 0x10]
mov bl, 1
call fcn.00403270
jmp 0x4530a5
test bl, bl
je 0x45309b
push 0x208
mov esi, 0x104
call fcn.0047774e
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push edi
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x453028
cmp eax, esi
jb 0x453045
add esi, esi
mov byte [ebp - 4], 3
push 2
push edi
call fcn.0047770b
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047774e
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
push esi
push edi
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x452fe0
mov byte [ebp - 4], 3
push 2
push edi
call fcn.0047770b
add esp, 8
mov dword [ebp - 0x18], 0
mov esi, 0xcb
jmp 0x4530be
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453050
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00403320
mov byte [ebp - 4], 3
push 2
push edi
call fcn.0047770b
mov eax, dword [ebp - 0x14]
add esp, 8
xor esi, esi
mov dword [ebp - 0x18], 0
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4530be
mov edi, dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004021c0
xor bl, bl
jmp 0x4530a5
lea ecx, [ebp - 0x10]
call fcn.00403270
mov bl, 1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp edx, eax
jl 0x452e80
xor esi, esi
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4530df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4530fe
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004022e0
push 0x80070057
call fcn.004022e0
int3