Function at 0x450120
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x217]
mov dword [ebp - 0x328], 0
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x334], 0
mov byte [ebp - 0x218], 0
call fcn.004644a0
push 0x104
lea eax, [ebp - 0x31f]
mov byte [ebp - 0x320], 0
push 0
push eax
call fcn.004644a0
push 0x104
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
push 0
push eax
call fcn.004644a0
lea ecx, [ebp - 0x320]
call fcn.00450410
mov edx, 0x49e654
lea ecx, [ebp - 0x110]
call fcn.00447390
lea eax, [ebp - 0x110]
push eax
push str._r_n__s_
push esi
call fcn.00447150
lea eax, [ebp - 0x320]
push eax
push str._s___r_n
push esi
call fcn.00447150
add esp, 0x3c
lea ecx, [ebp - 0x110]
mov edx, 0x49e65c
call fcn.00447390
push 0x105
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4503f4
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043e9ef
add esp, 8
test eax, eax
jne 0x4503f4
mov edx, 0x49d588
lea ecx, [ebp - 0x110]
call fcn.00447390
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x324]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x328]
call fcn.0042117d
add esp, 0x14
test eax, eax
jne 0x4503f4
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x450280
push 5
push dword [ebp - 0x324]
call fcn.004110cc
push 5
push dword [ebp - 0x324]
mov dword [ebp - 0x338], eax
call fcn.00411178
add esp, 0x10
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x330]
push eax
push 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x33c]
push eax
mov eax, dword [esi + 0x41c]
call eax
test eax, eax
je 0x4503c4
push 1
push dword [ebp - 0x324]
call fcn.0041123f
mov edx, eax
add esp, 8
lea edi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4502e6
sub edx, edi
je 0x450300
push eax
push str.___action_url_:__s_r_n
push esi
call fcn.00447150
add esp, 0xc
push 2
push dword [ebp - 0x324]
call fcn.0041123f
mov edx, eax
add esp, 8
lea edi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x450315
sub edx, edi
je 0x45032f
push eax
push str.____s_:
push esi
call fcn.00447150
add esp, 0xc
push 3
push dword [ebp - 0x324]
call fcn.0041123f
mov edx, eax
add esp, 8
lea edi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x450344
sub edx, edi
je 0x45035e
push eax
push str._s_r_n
push esi
call fcn.00447150
add esp, 0xc
push 4
push dword [ebp - 0x324]
call fcn.0041123f
mov edx, eax
add esp, 8
lea edi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x450373
sub edx, edi
je 0x45038d
push eax
push str.____s_:
push esi
call fcn.00447150
add esp, 0xc
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp - 0x330]
mov byte [eax + edx], 0
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4503a2
sub eax, edi
je 0x4503bc
push edx
push str._s_r_n_r_n
push esi
call fcn.00447150
add esp, 0xc
push dword [ebp - 0x32c]
call ebx
push dword [ebp - 0x324]
call fcn.004106fe
add esp, 4
cmp eax, 0x64
je 0x450280
push dword [ebp - 0x324]
call fcn.0040e114
push dword [ebp - 0x328]
call fcn.0043dda3
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046125f
mov esp, ebp
pop ebp
ret