Function at 0x1004e460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x1004e493
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
push 1
push dword [ebp - 0x54]
push 0x18cc
push 0x1c5e
call fcn.1004e7e7
add esp, 0x10
jmp 0x1004e7e3
mov dword [ebp - 0x40], 0x7e66
mov dword [ebp - 0x90], 0x1000cea8
cmp dword [ebp - 0x40], 0x81ee
jle 0x1004e523
and dword [ebp - 0x10], 0
jmp 0x1004e4ba
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x73ba
jge 0x1004e523
and dword [ebp - 8], 0
jmp 0x1004e4d0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1739
jge 0x1004e521
and dword [ebp - 0x24], 0
jmp 0x1004e4e6
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x488a
jge 0x1004e51f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
shl eax, cl
xor eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
mov ecx, 0x10084b98
call fcn.10020ee4
jmp 0x1004e4df
jmp 0x1004e4c9
jmp 0x1004e4b3
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x40], 0x7de3
jge 0x1004e542
mov edx, dword [ebp - 0x90]
mov ecx, 0x10084b98
call fcn.10023c34
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1004e7ad
mov dword [ebp - 0x38], 0x2bde
mov dword [ebp - 0xa8], 0x1000cec0
cmp dword [ebp - 0x38], 0x2ead
jle 0x1004e63a
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
and dword [ebp - 0x20], 0
jmp 0x1004e5a4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7fb2
jge 0x1004e634
and dword [ebp - 0x18], 0
jmp 0x1004e5be
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4138
jge 0x1004e62f
and dword [ebp - 0xc], 0
jmp 0x1004e5d4
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3275
jge 0x1004e62d
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
shl eax, cl
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
lea ecx, [ebp - 0xc0]
call fcn.1001105e
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
call fcn.10020ec4
push eax
call fcn.10069ba3
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.10020eba
jmp 0x1004e5cd
jmp 0x1004e5b7
jmp 0x1004e59d
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x38], 0x2ba7
jge 0x1004e658
push dword [ebp - 0xa8]
call fcn.10069ba3
pop ecx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0x1e7e
mov dword [ebp - 0x50], 0x1000cf18
cmp dword [ebp - 0x30], 0x2071
jle 0x1004e71b
and dword [ebp - 4], 0
jmp 0x1004e6a4
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4116
jge 0x1004e70b
and dword [ebp - 0x14], 0
jmp 0x1004e6ba
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e11
jge 0x1004e709
and dword [ebp - 0x1c], 0
jmp 0x1004e6d0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xe2c
jge 0x1004e707
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
and eax, dword [ebp - 4]
cdq
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
mov ecx, 0x10084b98
call fcn.10020ee4
jmp 0x1004e6c9
jmp 0x1004e6b3
jmp 0x1004e69d
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x30], 0x1bcb
jge 0x1004e737
mov edx, dword [ebp - 0x50]
mov ecx, 0x10084b98
call fcn.10023c34
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
push 1
mov ecx, dword [ebp - 0x28]
call fcn.1002129c
push 1
mov ecx, dword [ebp - 0x28]
call fcn.1002129c
push 1
mov ecx, dword [ebp - 0x28]
call fcn.1002129c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1004e770
mov dword [ebp - 0x34], 1
jmp 0x1004e774
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jle 0x1004e787
mov dword [ebp - 0x3c], 1
jmp 0x1004e78b
and dword [ebp - 0x3c], 0
imul eax, dword [ebp - 0x3c], 5
mov ecx, dword [ebp - 0x60]
cmp eax, dword [ecx]
jne 0x1004e79f
mov dword [ebp - 0x44], 1
jmp 0x1004e7a3
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x1004e7e3
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x1004e7e3
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov esp, ebp
pop ebp
ret