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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1005e0dd
lea eax, [ebp + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x1005e0b0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0x23f4
mov dword [ebp - 0x84], 0x1000c8cc
cmp dword [ebp - 0x24], 0x26c9
jle 0x1005ded8
and dword [ebp - 0x20], 0
jmp 0x1005de35
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x751f
jge 0x1005ded8
and dword [ebp - 0x18], 0
jmp 0x1005de4f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x123c
jge 0x1005ded3
and dword [ebp - 0x10], 0
jmp 0x1005de65
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x4944
jge 0x1005dece
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
and eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0xb4], eax
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xd0]
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 - 0xd0]
call fcn.100252df
jmp 0x1005de5e
jmp 0x1005de48
jmp 0x1005de2e
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x24], 0x230f
jge 0x1005def6
push dword [ebp - 0x84]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0x3ba4
mov dword [ebp - 0x6c], 0x1000c908
cmp dword [ebp - 0x30], 0x3d5b
jle 0x1005dfff
and dword [ebp - 0x1c], 0
jmp 0x1005df3c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4a24
jge 0x1005dfff
and dword [ebp - 0x14], 0
jmp 0x1005df56
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xddc
jge 0x1005dffa
and dword [ebp - 8], 0
jmp 0x1005df70
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x4d4e
jge 0x1005dff5
and dword [ebp - 0xc], 0
jmp 0x1005df86
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3f9b
jge 0x1005dff0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
sar eax, cl
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0xb8], eax
push dword [ebp - 0x94]
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe8]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.100252df
jmp 0x1005df7f
jmp 0x1005df69
jmp 0x1005df4f
jmp 0x1005df35
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0x30], 0x3ac3
jge 0x1005e01d
push dword [ebp - 0x6c]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x1005e044
mov dword [ebp - 0x2c], 1
jmp 0x1005e048
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
lea eax, [eax + ecx + 1]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, 0xa32a
sub ecx, dword [eax]
add ecx, 0x1716e440
je 0x1005e088
mov eax, 0x586f
test eax, eax
je 0x1005e088
mov dword [ebp - 0x28], 1
jmp 0x1005e08c
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jg 0x1005e09f
mov dword [ebp - 0x34], 1
jmp 0x1005e0a3
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
jmp 0x1005e0db
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push dword [eax]
mov ecx, dword [ebp - 0x78]
call fcn.10025597
mov dword [eax], 0x59b8bc58
jmp 0x1005e0ff
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
push dword [ebp - 0x80]
push dword [ebp - 0x88]
push 0
call fcn.100558a8
add esp, 0xc
mov esp, ebp
pop ebp
ret