Function at 0x1005c040
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1065fb0c], 0
je 0x1005c059
mov eax, 1
jmp 0x1005c512
cmp dword [0x1065f420], 0
je 0x1005c085
mov eax, dword [0x1065f420]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.10078410
add esp, 8
test eax, eax
jne 0x1005c085
mov eax, 1
jmp 0x1005c512
cmp dword [0x1065fc0c], 0
jne 0x1005c0ab
call fcn.1003d150
test eax, eax
jne 0x1005c0ab
push str.SetInitialBreakpoints:_Failed_to_initialise_debugger._n
call fcn.1003d460
add esp, 4
xor eax, eax
jmp 0x1005c512
mov dword [0x1065fafc], 0
mov dword [0x1065f668], 0
mov dword [0x1065f8a8], 0
mov dword [0x1065fb04], 0
mov dword [0x1065fae8], 0
mov dword [0x1065faf4], 0xffffffff
mov dword [0x1065f78c], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x1005c102
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
movzx ecx, byte [0x104f19dd]
test ecx, ecx
je 0x1005c198
mov edx, dword [0x104f18d4]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1005c13e
mov eax, dword [0x104f18d0]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f19e0], eax
jmp 0x1005c152
mov edx, dword [0x104f18d4]
push edx
push str.Failed_to_get_base_for_module___s_.
call fcn.1003d460
add esp, 8
cmp dword [0x104f19e0], 0
je 0x1005c17e
mov eax, dword [0x104f18d0]
push eax
mov ecx, dword [0x104f18d4]
push ecx
mov edx, dword [0x104f19e0]
push edx
push str.bp0_set_to_0x_p___s::_s_.
call fcn.1003d460
add esp, 0x10
jmp 0x1005c198
mov eax, dword [0x104f18d0]
push eax
mov ecx, dword [0x104f18d4]
push ecx
push str.Failed_to_get_address_for_function__s::_s.
call fcn.1003d460
add esp, 0xc
cmp dword [0x1065fae4], 0
je 0x1005c22e
mov edx, dword [ebp + 8]
push edx
call fcn.1003f4e0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005c22c
mov eax, dword [0x1065fae4]
sub eax, 1
mov dword [ebp - 4], eax
push 0x1005a4f0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003cda0
add esp, 0x18
test eax, eax
je 0x1005c20e
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.1003d460
add esp, 0xc
mov dword [0x1065f414], 1
mov edx, dword [ebp - 0xc]
mov dword [0x104f19e0], edx
jmp 0x1005c22c
push 0x103ddd0c
call fcn.1003d460
add esp, 4
mov dword [0x1065f414], 0
xor eax, eax
jmp 0x1005c512
jmp 0x1005c24b
cmp dword [0x104f19e0], 0
je 0x1005c24b
mov eax, dword [0x104f19e0]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005be50
add esp, 0xc
cmp dword [0x104f19e4], 0
je 0x1005c269
mov edx, dword [0x104f19e4]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1005be50
add esp, 0xc
cmp dword [0x104f19e8], 0
je 0x1005c287
mov ecx, dword [0x104f19e8]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.1005be50
add esp, 0xc
cmp dword [0x104f19ec], 0
je 0x1005c2a4
mov eax, dword [0x104f19ec]
push eax
push 3
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005be50
add esp, 0xc
movzx edx, byte [0x104f19f0]
test edx, edx
je 0x1005c2bf
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1005be50
add esp, 0xc
movzx ecx, byte [0x104f19f1]
test ecx, ecx
je 0x1005c2da
push 0
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1005be50
add esp, 0xc
movzx eax, byte [0x104f19f2]
test eax, eax
je 0x1005c2f5
push 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005be50
add esp, 0xc
movzx edx, byte [0x104f19f3]
test edx, edx
je 0x1005c310
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.1005be50
add esp, 0xc
cmp dword [0x104f19e0], 0
jne 0x1005c410
cmp dword [0x104f1a08], 0
je 0x1005c410
mov dword [ebp - 4], 0
cmp dword [0x104f1f54], 0
je 0x1005c383
mov ecx, dword [ebp + 8]
push ecx
call fcn.10039460
add esp, 4
test eax, eax
jne 0x1005c36c
mov edx, dword [ebp + 8]
push edx
push 0x103de9a0
call fcn.1003d460
add esp, 8
mov dword [0x1065f414], 0
xor eax, eax
jmp 0x1005c512
mov eax, dword [0x104f1a08]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003f590
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005c3a6
cmp dword [0x104f1a08], 0x200000
jbe 0x1005c39a
mov edx, dword [0x104f1a08]
mov dword [ebp - 8], edx
jmp 0x1005c3a6
mov eax, dword [ebp + 8]
add eax, dword [0x104f1a08]
mov dword [ebp - 8], eax
push 0x1005bb90
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003cda0
add esp, 0x18
test eax, eax
je 0x1005c3ee
push 0
mov eax, dword [0x104f1a08]
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.1003d460
add esp, 0x14
mov dword [0x1065f414], 1
jmp 0x1005c410
mov eax, dword [ebp - 4]
push eax
push 0x103de908
call fcn.1003d460
add esp, 8
mov dword [0x1065f414], 0
xor eax, eax
jmp 0x1005c512
cmp dword [0x104f19e4], 0
jne 0x1005c50d
cmp dword [0x104f1a0c], 0
je 0x1005c50d
mov dword [ebp - 4], 1
cmp dword [0x104f1f54], 0
je 0x1005c483
mov ecx, dword [ebp + 8]
push ecx
call fcn.10039460
add esp, 4
test eax, eax
jne 0x1005c46c
mov edx, dword [ebp + 8]
push edx
push 0x103de8b8
call fcn.1003d460
add esp, 8
mov dword [0x1065f414], 0
xor eax, eax
jmp 0x1005c512
mov eax, dword [0x104f1a0c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003f590
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005c4a6
cmp dword [0x104f1a0c], 0x200000
jbe 0x1005c49a
mov edx, dword [0x104f1a0c]
mov dword [ebp - 8], edx
jmp 0x1005c4a6
mov eax, dword [ebp + 8]
add eax, dword [0x104f1a0c]
mov dword [ebp - 8], eax
push 0x1005bb90
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003cda0
add esp, 0x18
test eax, eax
je 0x1005c4ee
push 0
mov eax, dword [0x104f1a0c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x103de860
call fcn.1003d460
add esp, 0x14
mov dword [0x1065f414], 1
jmp 0x1005c50d
mov eax, dword [ebp - 4]
push eax
push 0x103de820
call fcn.1003d460
add esp, 8
mov dword [0x1065f414], 0
xor eax, eax
jmp 0x1005c512
mov eax, dword [0x1065f414]
mov esp, ebp
pop ebp
ret