Function at 0x1005bb80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1065f92c], 0
je 0x1005bb99
mov eax, 1
jmp 0x1005c052
cmp dword [0x1065f240], 0
je 0x1005bbc5
mov eax, dword [0x1065f240]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.10077f80
add esp, 8
test eax, eax
jne 0x1005bbc5
mov eax, 1
jmp 0x1005c052
cmp dword [0x1065fa2c], 0
jne 0x1005bbeb
call fcn.1003ccd0
test eax, eax
jne 0x1005bbeb
push str.SetInitialBreakpoints:_Failed_to_initialise_debugger._n
call fcn.1003cfe0
add esp, 4
xor eax, eax
jmp 0x1005c052
mov dword [0x1065f91c], 0
mov dword [0x1065f488], 0
mov dword [0x1065f6c8], 0
mov dword [0x1065f924], 0
mov dword [0x1065f908], 0
mov dword [0x1065f914], 0xffffffff
mov dword [0x1065f5ac], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x1005bc42
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
movzx ecx, byte [0x104f1839]
test ecx, ecx
je 0x1005bcd8
mov edx, dword [0x104f1730]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1005bc7e
mov eax, dword [0x104f172c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f183c], eax
jmp 0x1005bc92
mov edx, dword [0x104f1730]
push edx
push str.Failed_to_get_base_for_module___s_.
call fcn.1003cfe0
add esp, 8
cmp dword [0x104f183c], 0
je 0x1005bcbe
mov eax, dword [0x104f172c]
push eax
mov ecx, dword [0x104f1730]
push ecx
mov edx, dword [0x104f183c]
push edx
push str.bp0_set_to_0x_p___s::_s_.
call fcn.1003cfe0
add esp, 0x10
jmp 0x1005bcd8
mov eax, dword [0x104f172c]
push eax
mov ecx, dword [0x104f1730]
push ecx
push str.Failed_to_get_address_for_function__s::_s.
call fcn.1003cfe0
add esp, 0xc
cmp dword [0x1065f904], 0
je 0x1005bd6e
mov edx, dword [ebp + 8]
push edx
call fcn.1003f050
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005bd6c
mov eax, dword [0x1065f904]
sub eax, 1
mov dword [ebp - 4], eax
push 0x1005a040
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003c920
add esp, 0x18
test eax, eax
je 0x1005bd4e
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.1003cfe0
add esp, 0xc
mov dword [0x1065f234], 1
mov edx, dword [ebp - 0xc]
mov dword [0x104f183c], edx
jmp 0x1005bd6c
push 0x103ddbb4
call fcn.1003cfe0
add esp, 4
mov dword [0x1065f234], 0
xor eax, eax
jmp 0x1005c052
jmp 0x1005bd8b
cmp dword [0x104f183c], 0
je 0x1005bd8b
mov eax, dword [0x104f183c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005b990
add esp, 0xc
cmp dword [0x104f1840], 0
je 0x1005bda9
mov edx, dword [0x104f1840]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1005b990
add esp, 0xc
cmp dword [0x104f1844], 0
je 0x1005bdc7
mov ecx, dword [0x104f1844]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.1005b990
add esp, 0xc
cmp dword [0x104f1848], 0
je 0x1005bde4
mov eax, dword [0x104f1848]
push eax
push 3
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005b990
add esp, 0xc
movzx edx, byte [0x104f184c]
test edx, edx
je 0x1005bdff
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1005b990
add esp, 0xc
movzx ecx, byte [0x104f184d]
test ecx, ecx
je 0x1005be1a
push 0
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1005b990
add esp, 0xc
movzx eax, byte [0x104f184e]
test eax, eax
je 0x1005be35
push 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005b990
add esp, 0xc
movzx edx, byte [0x104f184f]
test edx, edx
je 0x1005be50
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.1005b990
add esp, 0xc
cmp dword [0x104f183c], 0
jne 0x1005bf50
cmp dword [0x104f1864], 0
je 0x1005bf50
mov dword [ebp - 4], 0
cmp dword [0x104f1db0], 0
je 0x1005bec3
mov ecx, dword [ebp + 8]
push ecx
call fcn.10038fe0
add esp, 4
test eax, eax
jne 0x1005beac
mov edx, dword [ebp + 8]
push edx
push 0x103de818
call fcn.1003cfe0
add esp, 8
mov dword [0x1065f234], 0
xor eax, eax
jmp 0x1005c052
mov eax, dword [0x104f1864]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003f100
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005bee6
cmp dword [0x104f1864], 0x200000
jbe 0x1005beda
mov edx, dword [0x104f1864]
mov dword [ebp - 8], edx
jmp 0x1005bee6
mov eax, dword [ebp + 8]
add eax, dword [0x104f1864]
mov dword [ebp - 8], eax
push 0x1005b6e0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003c920
add esp, 0x18
test eax, eax
je 0x1005bf2e
push 0
mov eax, dword [0x104f1864]
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.1003cfe0
add esp, 0x14
mov dword [0x1065f234], 1
jmp 0x1005bf50
mov eax, dword [ebp - 4]
push eax
push 0x103de780
call fcn.1003cfe0
add esp, 8
mov dword [0x1065f234], 0
xor eax, eax
jmp 0x1005c052
cmp dword [0x104f1840], 0
jne 0x1005c04d
cmp dword [0x104f1868], 0
je 0x1005c04d
mov dword [ebp - 4], 1
cmp dword [0x104f1db0], 0
je 0x1005bfc3
mov ecx, dword [ebp + 8]
push ecx
call fcn.10038fe0
add esp, 4
test eax, eax
jne 0x1005bfac
mov edx, dword [ebp + 8]
push edx
push 0x103de730
call fcn.1003cfe0
add esp, 8
mov dword [0x1065f234], 0
xor eax, eax
jmp 0x1005c052
mov eax, dword [0x104f1868]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003f100
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005bfe6
cmp dword [0x104f1868], 0x200000
jbe 0x1005bfda
mov edx, dword [0x104f1868]
mov dword [ebp - 8], edx
jmp 0x1005bfe6
mov eax, dword [ebp + 8]
add eax, dword [0x104f1868]
mov dword [ebp - 8], eax
push 0x1005b6e0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003c920
add esp, 0x18
test eax, eax
je 0x1005c02e
push 0
mov eax, dword [0x104f1868]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x103de6d8
call fcn.1003cfe0
add esp, 0x14
mov dword [0x1065f234], 1
jmp 0x1005c04d
mov eax, dword [ebp - 4]
push eax
push 0x103de698
call fcn.1003cfe0
add esp, 8
mov dword [0x1065f234], 0
xor eax, eax
jmp 0x1005c052
mov eax, dword [0x1065f234]
mov esp, ebp
pop ebp
ret