Function at 0x1005bac0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1065f90c], 0
je 0x1005bad9
mov eax, 1
jmp 0x1005bf92
cmp dword [0x1065f220], 0
je 0x1005bb05
mov eax, dword [0x1065f220]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.10077ec0
add esp, 8
test eax, eax
jne 0x1005bb05
mov eax, 1
jmp 0x1005bf92
cmp dword [0x1065fa0c], 0
jne 0x1005bb2b
call fcn.1003cc90
test eax, eax
jne 0x1005bb2b
push str.SetInitialBreakpoints:_Failed_to_initialise_debugger._n
call fcn.1003cfa0
add esp, 4
xor eax, eax
jmp 0x1005bf92
mov dword [0x1065f8fc], 0
mov dword [0x1065f468], 0
mov dword [0x1065f6a8], 0
mov dword [0x1065f904], 0
mov dword [0x1065f8e8], 0
mov dword [0x1065f8f4], 0xffffffff
mov dword [0x1065f58c], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x1005bb82
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
movzx ecx, byte [0x104f1819]
test ecx, ecx
je 0x1005bc18
mov edx, dword [0x104f1710]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1005bbbe
mov eax, dword [0x104f170c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f181c], eax
jmp 0x1005bbd2
mov edx, dword [0x104f1710]
push edx
push str.Failed_to_get_base_for_module___s_.
call fcn.1003cfa0
add esp, 8
cmp dword [0x104f181c], 0
je 0x1005bbfe
mov eax, dword [0x104f170c]
push eax
mov ecx, dword [0x104f1710]
push ecx
mov edx, dword [0x104f181c]
push edx
push str.bp0_set_to_0x_p___s::_s_.
call fcn.1003cfa0
add esp, 0x10
jmp 0x1005bc18
mov eax, dword [0x104f170c]
push eax
mov ecx, dword [0x104f1710]
push ecx
push str.Failed_to_get_address_for_function__s::_s.
call fcn.1003cfa0
add esp, 0xc
cmp dword [0x1065f8e4], 0
je 0x1005bcae
mov edx, dword [ebp + 8]
push edx
call fcn.1003eff0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005bcac
mov eax, dword [0x1065f8e4]
sub eax, 1
mov dword [ebp - 4], eax
push 0x10059f80
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003c8e0
add esp, 0x18
test eax, eax
je 0x1005bc8e
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.Breakpoint__d_set_on_entry_point_at_0x_p_n
call fcn.1003cfa0
add esp, 0xc
mov dword [0x1065f214], 1
mov edx, dword [ebp - 0xc]
mov dword [0x104f181c], edx
jmp 0x1005bcac
push 0x103ddb3c
call fcn.1003cfa0
add esp, 4
mov dword [0x1065f214], 0
xor eax, eax
jmp 0x1005bf92
jmp 0x1005bccb
cmp dword [0x104f181c], 0
je 0x1005bccb
mov eax, dword [0x104f181c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005b8d0
add esp, 0xc
cmp dword [0x104f1820], 0
je 0x1005bce9
mov edx, dword [0x104f1820]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1005b8d0
add esp, 0xc
cmp dword [0x104f1824], 0
je 0x1005bd07
mov ecx, dword [0x104f1824]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.1005b8d0
add esp, 0xc
cmp dword [0x104f1828], 0
je 0x1005bd24
mov eax, dword [0x104f1828]
push eax
push 3
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005b8d0
add esp, 0xc
movzx edx, byte [0x104f182c]
test edx, edx
je 0x1005bd3f
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1005b8d0
add esp, 0xc
movzx ecx, byte [0x104f182d]
test ecx, ecx
je 0x1005bd5a
push 0
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1005b8d0
add esp, 0xc
movzx eax, byte [0x104f182e]
test eax, eax
je 0x1005bd75
push 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005b8d0
add esp, 0xc
movzx edx, byte [0x104f182f]
test edx, edx
je 0x1005bd90
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.1005b8d0
add esp, 0xc
cmp dword [0x104f181c], 0
jne 0x1005be90
cmp dword [0x104f1844], 0
je 0x1005be90
mov dword [ebp - 4], 0
cmp dword [0x104f1d90], 0
je 0x1005be03
mov ecx, dword [ebp + 8]
push ecx
call fcn.10038fa0
add esp, 4
test eax, eax
jne 0x1005bdec
mov edx, dword [ebp + 8]
push edx
push 0x103de7d0
call fcn.1003cfa0
add esp, 8
mov dword [0x1065f214], 0
xor eax, eax
jmp 0x1005bf92
mov eax, dword [0x104f1844]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003f0a0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005be26
cmp dword [0x104f1844], 0x200000
jbe 0x1005be1a
mov edx, dword [0x104f1844]
mov dword [ebp - 8], edx
jmp 0x1005be26
mov eax, dword [ebp + 8]
add eax, dword [0x104f1844]
mov dword [ebp - 8], eax
push 0x1005b620
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003c8e0
add esp, 0x18
test eax, eax
je 0x1005be6e
push 0
mov eax, dword [0x104f1844]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push str.SetInitialBreakpoints:_Breakpoint_on_return__d_set_on_address_0x_p__RVA_0x_x__type__d__n
call fcn.1003cfa0
add esp, 0x14
mov dword [0x1065f214], 1
jmp 0x1005be90
mov eax, dword [ebp - 4]
push eax
push 0x103de738
call fcn.1003cfa0
add esp, 8
mov dword [0x1065f214], 0
xor eax, eax
jmp 0x1005bf92
cmp dword [0x104f1820], 0
jne 0x1005bf8d
cmp dword [0x104f1848], 0
je 0x1005bf8d
mov dword [ebp - 4], 1
cmp dword [0x104f1d90], 0
je 0x1005bf03
mov ecx, dword [ebp + 8]
push ecx
call fcn.10038fa0
add esp, 4
test eax, eax
jne 0x1005beec
mov edx, dword [ebp + 8]
push edx
push 0x103de6e8
call fcn.1003cfa0
add esp, 8
mov dword [0x1065f214], 0
xor eax, eax
jmp 0x1005bf92
mov eax, dword [0x104f1848]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003f0a0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005bf26
cmp dword [0x104f1848], 0x200000
jbe 0x1005bf1a
mov edx, dword [0x104f1848]
mov dword [ebp - 8], edx
jmp 0x1005bf26
mov eax, dword [ebp + 8]
add eax, dword [0x104f1848]
mov dword [ebp - 8], eax
push 0x1005b620
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003c8e0
add esp, 0x18
test eax, eax
je 0x1005bf6e
push 0
mov eax, dword [0x104f1848]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x103de690
call fcn.1003cfa0
add esp, 0x14
mov dword [0x1065f214], 1
jmp 0x1005bf8d
mov eax, dword [ebp - 4]
push eax
push 0x103de650
call fcn.1003cfa0
add esp, 8
mov dword [0x1065f214], 0
xor eax, eax
jmp 0x1005bf92
mov eax, dword [0x1065f214]
mov esp, ebp
pop ebp
ret