Function at 0x100038df
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push edi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10003931
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x10003910
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
jmp 0x1000392c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x1000392c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
jmp 0x10003bdc
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x10003bc7
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
mov dword [ebp - 8], 6
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x18], 0
jmp 0x10003982
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x10003995
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x14], 0x110c93b4
jmp 0x1000397b
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x14], 0x1c
jmp 0x100039ba
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x14], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0xffffffe9
jne 0x10003b36
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10003ae4
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0
je 0x100039f8
cmp dword [ebp - 4], 0
je 0x100039f8
mov dword [ebp - 0x64], 1
jmp 0x100039fc
and dword [ebp - 0x64], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x7c], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x80], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xf59e
jne 0x10003a35
mov dword [ebp - 0x28], 1
jmp 0x10003a39
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x28], eax
jge 0x10003a4a
mov dword [ebp - 0x44], 1
jmp 0x10003a4e
and dword [ebp - 0x44], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp dword [ebp - 0x44], eax
jl 0x10003a66
mov dword [ebp - 0x20], 1
jmp 0x10003a6a
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
je 0x10003a87
xor eax, eax
inc eax
je 0x10003a87
push 3
pop eax
test eax, eax
je 0x10003a87
mov dword [ebp - 0x38], 1
jmp 0x10003a8b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x38]
jl 0x10003a9c
mov dword [ebp - 0x30], 1
jmp 0x10003aa0
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
imul eax, dword [ebp - 0x1c]
add eax, dword [ebp - 4]
cmp eax, 0xbc40
jge 0x10003ac7
mov dword [ebp - 0x40], 1
jmp 0x10003acb
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 6
jae 0x10003ad5
cmp dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10003ae4
mov dword [ebp - 0x24], 1
jmp 0x10003ae8
and dword [ebp - 0x24], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp + eax - 0x14]
cmp ecx, 0x656540f2
jg 0x10003b0d
push 0xfffffffffffffff6
pop eax
test eax, eax
je 0x10003b0d
mov dword [ebp - 0x2c], 1
jmp 0x10003b11
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x2c], eax
jl 0x10003b27
xor eax, eax
inc eax
je 0x10003b27
mov dword [ebp - 0x34], 1
jmp 0x10003b2b
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x70], eax
jmp 0x100039a5
mov dword [ebp - 8], 1
jmp 0x10003b46
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x10003b8c
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 4
mov byte [ebp - 9], 0
push 0
lea eax, [ebp - 9]
push eax
call fcn.10009c33
pop ecx
pop ecx
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], eax
jge 0x10003b7c
mov dword [ebp - 0x3c], 1
jmp 0x10003b80
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x14], ecx
jmp 0x10003b3f
lea eax, [ebp - 0x98]
push eax
call fcn.10001af8
pop ecx
mov esi, eax
lea edi, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call fcn.1000377f
shl eax, 1
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx + eax*4]
sub eax, 0x12c
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x10003bdc
push 0x1705
push 0x1792
push 0x312
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
mov esp, ebp
pop ebp
ret