Function at 0x10054664
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10054a90
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xac], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x70], 0x5ae8
mov dword [ebp - 0xf4], 0x1000bb20
cmp dword [ebp - 0x70], 0x5e7e
jle 0x10054764
and dword [ebp - 0x30], 0
jmp 0x100546e3
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x6d19
jge 0x10054764
and dword [ebp - 0x38], 0
jmp 0x100546f9
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xad4
jge 0x1005475f
mov eax, dword [ebp - 0x30]
and eax, dword [ebp - 0x38]
cdq
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x11c], eax
push dword [ebp - 0xfc]
push dword [ebp - 0x100]
lea ecx, [ebp - 0x140]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x140]
call fcn.100252df
jmp 0x100546f2
jmp 0x100546dc
mov eax, dword [ebp - 0xe0]
movzx eax, byte [eax]
test eax, eax
je 0x10054865
mov byte [ebp - 1], 0
mov dword [ebp - 0x64], 0x3a16
mov dword [ebp - 0x84], 0x1000bb88
cmp dword [ebp - 0x64], 0x3dd5
jle 0x10054828
and dword [ebp - 0x20], 0
jmp 0x100547a4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x58e7
jge 0x10054828
and dword [ebp - 0x14], 0
jmp 0x100547ba
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x7e03
jge 0x10054823
mov eax, dword [ebp - 0x20]
cdq
idiv dword [ebp - 0x14]
mov eax, edx
cdq
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x128], eax
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x170]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x170]
call fcn.100252df
jmp 0x100547b3
jmp 0x1005479d
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1005484b
push 0
push 0x4075
push 0x17f8
push 1
push 0x5821
call fcn.1006a476
add esp, 0x14
cmp dword [ebp - 0x64], 0x38b8
jge 0x10054860
push dword [ebp - 0x84]
call fcn.1008287d
pop ecx
jmp 0x10054a76
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
inc eax
cmp eax, 1
jne 0x10054912
mov dword [ebp - 0x74], 1
jmp 0x10054916
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x74]
jne 0x1005492f
mov eax, 0xd3c5
test eax, eax
jne 0x1005492f
and dword [ebp - 0x54], 0
jmp 0x10054936
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x54]
je 0x10054949
mov dword [ebp - 0x28], 1
jmp 0x1005494d
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
cmp dword [ebp - 0x28], 0xffffffff
jle 0x1005496f
mov dword [ebp - 0x6c], 1
jmp 0x10054973
and dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0x9f111191
ja 0x10054985
mov dword [ebp - 0x5c], 1
jmp 0x10054989
and dword [ebp - 0x5c], 0
push 2
mov ecx, dword [ebp - 0xc]
call fcn.10025597
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [eax]
jg 0x100549a3
mov dword [ebp - 0x7c], 1
jmp 0x100549a7
and dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0xfffffffa
jb 0x100549b6
mov dword [ebp - 0x44], 1
jmp 0x100549ba
and dword [ebp - 0x44], 0
push 2
mov ecx, dword [ebp - 0xc]
call fcn.10025597
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax]
jge 0x100549dc
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x100549dc
mov dword [ebp - 0x48], 1
jmp 0x100549e0
and dword [ebp - 0x48], 0
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10025597
mov ecx, dword [ebp - 0x48]
sub ecx, dword [eax]
je 0x100549fa
mov eax, 0x8a9a2627
test eax, eax
jne 0x10054a05
or eax, 0xffffffff
jne 0x10054a05
and dword [ebp - 0x50], 0
jmp 0x10054a0c
mov dword [ebp - 0x50], 1
push 2
mov ecx, dword [ebp - 0xc]
call fcn.10025597
mov eax, dword [eax]
cmp eax, dword [ebp - 0x50]
je 0x10054a26
mov dword [ebp - 0x40], 1
jmp 0x10054a2a
and dword [ebp - 0x40], 0
push 2
mov ecx, dword [ebp - 0xc]
call fcn.10025597
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jne 0x10054a4c
mov dword [ebp - 0x60], 1
jmp 0x10054a50
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp dword [ebp - 0x60], eax
jl 0x10054a63
mov dword [ebp - 0x68], 1
jmp 0x10054a67
and dword [ebp - 0x68], 0
imul eax, dword [ebp - 0x68], 0x2174
mov ecx, dword [ebp - 0xec]
mov dword [ecx], eax
cmp dword [ebp - 0x70], 0x5872
jge 0x10054a8b
push dword [ebp - 0xf4]
call fcn.1008287d
pop ecx
jmp 0x10054cfa
mov dword [ebp - 0x78], 0x4cc3
mov dword [ebp - 0x88], 0x1000bbd4
cmp dword [ebp - 0x78], 0x4ec1
jle 0x10054b3d
and dword [ebp - 0x18], 0
jmp 0x10054abb
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x58dc
jge 0x10054b3d
and dword [ebp - 0x1c], 0
jmp 0x10054ad1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5d7a
jge 0x10054b38
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0xf8], ax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
lea ecx, [ebp - 0x158]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x158]
call fcn.100252df
jmp 0x10054aca
jmp 0x10054ab4
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x78], 0x490c
jge 0x10054b5b
push dword [ebp - 0x88]
call fcn.1008287d
pop ecx
lea eax, [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x10054b89
push 0
push 0
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x10054cfa
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x80], 0x7127
mov dword [ebp - 0xb0], 0x1000bbf0
cmp dword [ebp - 0x80], 0x71a5
jle 0x10054c8e
and dword [ebp - 0x3c], 0
jmp 0x10054bc0
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x122b
jge 0x10054c8e
and dword [ebp - 0x34], 0
jmp 0x10054bda
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x6c84
jge 0x10054c89
and dword [ebp - 0x24], 0
jmp 0x10054bf4
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1c8e
jge 0x10054c84
and dword [ebp - 0x2c], 0
jmp 0x10054c0e
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x21e2
jge 0x10054c7f
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
sub ecx, eax
mov eax, dword [ebp - 0x3c]
shl eax, cl
cdq
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x120], eax
push dword [ebp - 0xd4]
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x188]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x188]
call fcn.100252df
jmp 0x10054c07
jmp 0x10054bed
jmp 0x10054bd3
jmp 0x10054bb9
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0x80], 0x6d6b
jge 0x10054caf
push dword [ebp - 0xb0]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x10054cda
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], 4
jge 0x10054cfa
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 0xc8]
call fcn.10025597
mov dword [eax], 0x5bb08661
jmp 0x10054ccf
mov esp, ebp
pop ebp
ret