Function at 0x452cc4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
movzx eax, byte [ebp + 0x60]
test eax, eax
je 0x452f57
lea eax, [ebp + 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x11c], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xb4]
movzx eax, byte [eax]
test eax, eax
je 0x452ecb
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x452ebc
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x452e46
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 2
jg 0x452eba
push 1
push 0
push 0x595a
push 0x4fc8
push 0x167d
push 1
call fcn.00441cb3
add esp, 0x18
push dword [ebp - 0x150]
push 0x246e
push dword [ebp - 0xa4]
push 0x4f3d
push 1
push 0x245d
push 1
push dword [ebp - 0x104]
push 1
push dword [ebp - 0x10]
push dword [ebp - 0xac]
push dword [ebp - 0x134]
push 0x653f
push 1
push dword [ebp - 0x3c]
push 0x4687
call fcn.00441979
add esp, 0x40
jmp 0x452e3b
jmp 0x452ec6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
jmp 0x452f52
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x14c]
movzx eax, byte [eax]
test eax, eax
je 0x452f40
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax]
test eax, eax
je 0x452f3e
push 0xfaa
push 0x59b8
push 0x5efe
push 1
push 1
push 0x4cb8
push 0
push 1
push 0x7217
call fcn.004353aa
add esp, 0x24
jmp 0x452f52
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x452f52
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x453268
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x5c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x50]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x13c]
movzx eax, byte [eax]
test eax, eax
je 0x453235
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x45307f
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x45305a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jge 0x45307a
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0xb0]
call fcn.0042f416
mov dword [eax], 1
jmp 0x45304f
jmp 0x453233
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x453136
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x453136
mov dword [ebp - 0x24], 1
jmp 0x45313a
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jne 0x45314d
mov dword [ebp - 0x34], 1
jmp 0x453151
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
imul ecx, dword [edx]
cmp dword [eax], ecx
jne 0x45316f
mov dword [ebp - 0x2c], 1
jmp 0x453173
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 2
jne 0x453182
mov dword [ebp - 0x20], 1
jmp 0x453186
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x26f39384
jl 0x453198
mov dword [ebp - 0x18], 1
jmp 0x45319c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x4531c2
mov dword [ebp - 0x118], 1
jmp 0x4531c9
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
imul eax, dword [ecx]
cmp eax, 1
jne 0x4531ea
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
mov eax, dword [ebp - 0x120]
mov dword [eax], 0x23ce
mov eax, 0x23ce
test eax, eax
je 0x45320d
xor eax, eax
inc eax
je 0x45320d
mov dword [ebp - 0x30], 1
jmp 0x453211
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jge 0x453224
mov dword [ebp - 0x38], 1
jmp 0x453228
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x453268
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x148], eax
push 0x3196
push dword [ebp - 0x140]
push dword [ebp - 0x148]
push 0
call fcn.004397c7
add esp, 0x10
mov esp, ebp
pop ebp
ret