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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1005c01f
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x30], 0x65a0
mov dword [ebp - 0x50], 0x1000c4b8
cmp dword [ebp - 0x30], 0x68df
jle 0x1005bd49
and dword [ebp - 0xc], 0
jmp 0x1005bc78
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7fe4
jge 0x1005bd49
and dword [ebp - 0x1c], 0
jmp 0x1005bc92
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4b2f
jge 0x1005bd44
and dword [ebp - 0x14], 0
jmp 0x1005bcac
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x24fb
jge 0x1005bd3f
and dword [ebp - 0x24], 0
jmp 0x1005bcc6
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x783
jge 0x1005bd3a
mov esi, dword [ebp - 0xc]
imul esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x24]
mov ecx, edx
shl esi, cl
mov eax, esi
cdq
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0xc4], eax
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xe4]
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 - 0xe4]
call fcn.100252df
jmp 0x1005bcbf
jmp 0x1005bca5
jmp 0x1005bc8b
jmp 0x1005bc71
lea eax, [ebp + 0x20]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0x30], 0x642b
jge 0x1005bd64
push dword [ebp - 0x50]
call fcn.1008287d
pop ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xa8]
movzx eax, byte [eax]
test eax, eax
je 0x1005bdeb
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x2c], eax
push 4
push 0x2000
mov eax, dword [ebp - 0x28]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x34]
push 0x3a4a
push 0x3c9e
call fcn.10049a96
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x1005bde6
push 4
push 0x2000
mov eax, dword [ebp - 0x28]
push dword [eax + 0x50]
push 0
push 0x3a4a
push 0x3c9e
call fcn.10049a96
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x1005c01d
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x34], 0x4324
mov dword [ebp - 0x44], 0x1000c4f0
cmp dword [ebp - 0x34], 0x4708
jle 0x1005bec3
and dword [ebp - 4], 0
jmp 0x1005be1c
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4937
jge 0x1005bec3
and dword [ebp - 0x20], 0
jmp 0x1005be36
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2771
jge 0x1005bebe
and dword [ebp - 0x18], 0
jmp 0x1005be4c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6715
jge 0x1005beb9
mov eax, dword [ebp - 0x20]
cdq
idiv dword [ebp - 0x18]
or edx, dword [ebp - 4]
mov eax, edx
cdq
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0xac], ax
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xfc]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xfc]
call fcn.100252df
jmp 0x1005be45
jmp 0x1005be2f
jmp 0x1005be15
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x34], 0x4193
jge 0x1005bede
push dword [ebp - 0x44]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x38], 0x892
mov dword [ebp - 0x88], 0x1000c538
cmp dword [ebp - 0x38], 0xc3d
jle 0x1005bf9f
and dword [ebp - 8], 0
jmp 0x1005bf27
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x22ed
jge 0x1005bf9f
and dword [ebp - 0x10], 0
jmp 0x1005bf3d
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x78f2
jge 0x1005bf9d
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0xcc], eax
push dword [ebp - 0x90]
push dword [ebp - 0x94]
lea ecx, [ebp - 0x114]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x114]
call fcn.100252df
jmp 0x1005bf36
jmp 0x1005bf20
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x38], 0x4c4
jge 0x1005bfbd
push dword [ebp - 0x88]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x64]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.10025597
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
shl eax, 2
imul eax, eax, 0xc0f9
test eax, eax
je 0x1005c00e
push 1
mov ecx, dword [ebp - 0x40]
call fcn.10025597
cmp dword [eax], 0
je 0x1005c00e
and dword [ebp - 0x3c], 0
jmp 0x1005c015
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x1005c04b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
push 0x69d7
push 0x17bd
push 0
push dword [ebp - 0x84]
call fcn.10053fd5
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret