Function at 0x585490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x5f2968], eax
push 2
mov eax, dword [0x5f2968]
push eax
call fcn.005a5ec0
add esp, 8
mov dword [0x5f3048], 0
mov ecx, dword [ebp + 8]
mov dword [0x5f3058], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x5f305c], edx
mov eax, dword [ebp + 0x10]
mov dword [0x5f3060], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5f3050], eax
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 8]
jle 0x5855f6
push 6
push 0x5e5b1c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.005ba3fb
add esp, 0xc
test eax, eax
jne 0x5855f6
mov byte [0x5f2970], 1
mov dword [0x5e372c], 0x3c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.005ad530
add esp, 4
cmp eax, 6
jbe 0x5855ed
push 0x5e5b18
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
add ecx, 6
push ecx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x585566
mov dword [0x5e372c], 0xffffffff
jmp 0x5855ed
push 0x5e5b10
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 6
push eax
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x58558d
mov dword [0x5e372c], 0xfffffffe
jmp 0x5855ed
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
add edx, 6
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x5855c3
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
push eax
call fcn.005ad489
add esp, 4
test eax, eax
jne 0x5855b8
jmp 0x5855c3
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x585599
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x5855e6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
add edx, 6
push edx
call fcn.005858d0
add esp, 4
mov dword [0x5e372c], eax
jmp 0x5855ed
mov byte [0x5f2970], 0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jge 0x585873
push 0x5e5b04
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x58567a
mov dword [0x5f296c], 1
push 0x5e5b02
push 0x5f3078
call fcn.005ad1d0
add esp, 8
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jge 0x585675
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
push 0x5f3078
call fcn.005ad1e0
add esp, 8
push 0x5e5b00
push 0x5f3078
call fcn.005ad1e0
add esp, 8
jmp 0x585639
jmp 0x585873
push 0x5e5af0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x5856f2
mov dword [0x5f296c], 8
push 0x5e5b02
push 0x5f3078
call fcn.005ad1d0
add esp, 8
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x5856ed
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
push 0x5f3078
call fcn.005ad1e0
add esp, 8
push 0x5e5b00
push 0x5f3078
call fcn.005ad1e0
add esp, 8
jmp 0x5856b1
jmp 0x585873
push 0x5e5ae4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x58571c
mov dword [0x5f296c], 2
jmp 0x585873
push 0x5e5ad8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x585746
mov dword [0x5f296c], 3
jmp 0x585873
push 0x5e5ad0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x585770
mov dword [0x5f296c], 4
jmp 0x585873
push 0x5e5ac4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x58579a
mov dword [0x5f296c], 5
jmp 0x585873
push 0x5e5ab4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x5857c4
mov dword [0x5f296c], 9
jmp 0x585873
push 0x5e5aa4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x5857ee
mov dword [0x5f296c], 6
jmp 0x585873
push 0x5e5a98
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x585815
mov dword [0x5f296c], 7
jmp 0x585873
push 0x5e5a8c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005b62e3
add esp, 8
test eax, eax
jne 0x58583c
mov dword [0x5f296c], 0xa
jmp 0x585873
push 9
push 0x5e5a80
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.005ba3fb
add esp, 0xc
test eax, eax
jne 0x585873
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, 9
push edx
push 0x5f3078
call fcn.005ad1d0
add esp, 8
call fcn.00591d00
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5858b9
call fcn.0058fd70
push eax
push 0x5e5a7c
call fcn.005ad10b
add esp, 8
call fcn.0058fd90
push eax
call fcn.005ad530
add esp, 4
test eax, eax
je 0x5858b9
call fcn.0058fd90
push eax
push 0x5e5a7c
call fcn.005ad10b
add esp, 8
mov eax, dword [0x5f36c8]
mov esp, ebp
pop ebp
ret