Function at 0x100361d5
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1005ffba
call fcn.1005e738
sub esp, 0x60
push ebx
push esi
push edi
mov byte [ebp - 0x14], cl
mov dword [ebp - 0x2c], 0x25a4
cmp dword [ebp - 0x2c], 0xc13
push 0
pop ebx
jge 0x10036467
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push str._d__d_n
call fcn.10047aed
add esp, 0xc
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push eax
push dword [ebp - 0x1c]
call fcn.1003d60f
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.1003d64b
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], ebx
je 0x10036269
push dword [ebp - 0x44]
call fcn.10046c84
pop ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.1003d60f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.1003d64b
cmp dword [ebp - 0x50], 0
je 0x100362b8
push dword [ebp - 0x50]
call fcn.10046c84
pop ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov ecx, dword [ebp - 0x1c]
test edx, edx
jle 0x100362f4
mov ebx, dword [ebp - 0x5c]
xor esi, esi
test ecx, ecx
jle 0x100362ea
mov eax, dword [ebx]
lea eax, [eax + esi*4]
push eax
push 0x10067dd4
call fcn.10047aed
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
inc esi
cmp esi, ecx
jl 0x100362cd
mov edx, dword [ebp - 0x20]
inc edi
add ebx, 0xc
cmp edi, edx
jl 0x100362c7
xor ebx, ebx
mov eax, ebx
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x28], eax
test edx, edx
jle 0x1003636e
mov edi, dword [ebp - 0x5c]
mov esi, ebx
sub edi, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], edi
xor edi, edi
test ecx, ecx
jle 0x10036360
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + esi]
cmp dword [eax + edi*4], 0
jne 0x10036358
xor esi, esi
test edx, edx
jle 0x1003633b
mov ecx, ebx
mov eax, dword [ecx]
lea ecx, [ecx + 0xc]
and dword [eax + edi*4], 0
inc esi
mov edx, dword [ebp - 0x20]
cmp esi, edx
jl 0x10036327
mov ecx, dword [ebp - 0x1c]
xor esi, esi
test ecx, ecx
jle 0x10036355
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
and dword [eax + esi*4], 0
inc esi
mov ecx, dword [ebp - 0x1c]
cmp esi, ecx
jl 0x10036344
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
inc edi
cmp edi, ecx
jl 0x10036313
mov eax, dword [ebp - 0x28]
inc eax
add esi, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
cmp eax, edx
jl 0x1003630d
and dword [ebp - 0x2c], 0
mov al, 1
mov byte [ebp - 0xd], al
test edx, edx
jle 0x1003640d
mov esi, dword [ebp - 0x5c]
mov edi, ebx
sub esi, ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x38], esi
test al, al
je 0x10036400
xor esi, esi
test ecx, ecx
jle 0x100363eb
test al, al
je 0x100363eb
mov eax, dword [ebp - 0x38]
mov eax, dword [edi + eax]
cmp dword [eax + esi*4], 1
jne 0x100363e3
and dword [ebp - 0x28], 0
mov edi, ebx
mov eax, dword [edi]
cmp dword [eax + esi*4], 1
je 0x100363e0
mov eax, dword [ebp - 0x28]
add edi, 0xc
inc eax
mov dword [ebp - 0x28], eax
cmp eax, edx
jl 0x100363ac
mov eax, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [eax]
cmp dword [eax], 1
je 0x100363e0
inc edi
add eax, 4
cmp edi, ecx
jl 0x100363c9
mov edi, dword [ebp - 0x24]
xor al, al
mov byte [ebp - 0xd], al
jmp 0x100363e6
mov edi, dword [ebp - 0x24]
mov al, byte [ebp - 0xd]
inc esi
cmp esi, ecx
jl 0x10036396
mov esi, dword [ebp - 0x2c]
add edi, 0xc
inc esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], esi
cmp esi, edx
jl 0x1003638c
test al, al
jne 0x1003640d
push 0x10068f60
call fcn.10047cbc
pop ecx
jmp 0x10036451
push 0x10068f58
call fcn.10047cbc
xor edi, edi
pop ecx
cmp dword [ebp - 0x20], edi
jle 0x10036451
xor esi, esi
cmp dword [ebp - 0x1c], esi
jle 0x1003643d
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0x1006b61c
call fcn.100476ff
inc esi
pop ecx
pop ecx
cmp esi, dword [ebp - 0x1c]
jl 0x10036426
push 0x10067a19
call fcn.10047cbc
inc edi
add ebx, 0xc
pop ecx
cmp edi, dword [ebp - 0x20]
jl 0x1003641f
lea ecx, [ebp - 0x5c]
call fcn.1003d6ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1003d6ed
xor ebx, ebx
cmp byte [ebp - 0x14], 0
je 0x1003647c
push ebx
lea ecx, [ebp - 0x15]
mov byte [ebp - 0x15], bl
call fcn.100352ca
pop ecx
jmp 0x1003648b
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x1003648b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret