Function at 0x1005caa0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1066186c], 0
je 0x1005cab9
mov eax, 1
jmp 0x1005cf72
cmp dword [0x10661170], 0
je 0x1005cae5
mov eax, dword [0x10661170]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.10079230
add esp, 8
test eax, eax
jne 0x1005cae5
mov eax, 1
jmp 0x1005cf72
cmp dword [0x1066196c], 0
jne 0x1005cb0b
call fcn.1003dbe0
test eax, eax
jne 0x1005cb0b
push str.SetInitialBreakpoints:_Failed_to_initialise_debugger._n
call fcn.1003def0
add esp, 4
xor eax, eax
jmp 0x1005cf72
mov dword [0x1066185c], 0
mov dword [0x106613c8], 0
mov dword [0x10661608], 0
mov dword [0x10661864], 0
mov dword [0x10661848], 0
mov dword [0x10661854], 0xffffffff
mov dword [0x106614ec], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x1005cb62
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
movzx ecx, byte [0x104f333d]
test ecx, ecx
je 0x1005cbf8
mov edx, dword [0x104f3234]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1005cb9e
mov eax, dword [0x104f3230]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x104f3340], eax
jmp 0x1005cbb2
mov edx, dword [0x104f3234]
push edx
push str.Failed_to_get_base_for_module___s_.
call fcn.1003def0
add esp, 8
cmp dword [0x104f3340], 0
je 0x1005cbde
mov eax, dword [0x104f3230]
push eax
mov ecx, dword [0x104f3234]
push ecx
mov edx, dword [0x104f3340]
push edx
push str.bp0_set_to_0x_p___s::_s_.
call fcn.1003def0
add esp, 0x10
jmp 0x1005cbf8
mov eax, dword [0x104f3230]
push eax
mov ecx, dword [0x104f3234]
push ecx
push str.Failed_to_get_address_for_function__s::_s.
call fcn.1003def0
add esp, 0xc
cmp dword [0x10661844], 0
je 0x1005cc8e
mov edx, dword [ebp + 8]
push edx
call fcn.1003ff60
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1005cc8c
mov eax, dword [0x10661844]
sub eax, 1
mov dword [ebp - 4], eax
push 0x1005af60
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003d830
add esp, 0x18
test eax, eax
je 0x1005cc6e
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.1003def0
add esp, 0xc
mov dword [0x10661164], 1
mov edx, dword [ebp - 0xc]
mov dword [0x104f3340], edx
jmp 0x1005cc8c
push 0x103df3cc
call fcn.1003def0
add esp, 4
mov dword [0x10661164], 0
xor eax, eax
jmp 0x1005cf72
jmp 0x1005ccab
cmp dword [0x104f3340], 0
je 0x1005ccab
mov eax, dword [0x104f3340]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005c8b0
add esp, 0xc
cmp dword [0x104f3344], 0
je 0x1005ccc9
mov edx, dword [0x104f3344]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1005c8b0
add esp, 0xc
cmp dword [0x104f3348], 0
je 0x1005cce7
mov ecx, dword [0x104f3348]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.1005c8b0
add esp, 0xc
cmp dword [0x104f334c], 0
je 0x1005cd04
mov eax, dword [0x104f334c]
push eax
push 3
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005c8b0
add esp, 0xc
movzx edx, byte [0x104f3350]
test edx, edx
je 0x1005cd1f
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1005c8b0
add esp, 0xc
movzx ecx, byte [0x104f3351]
test ecx, ecx
je 0x1005cd3a
push 0
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1005c8b0
add esp, 0xc
movzx eax, byte [0x104f3352]
test eax, eax
je 0x1005cd55
push 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005c8b0
add esp, 0xc
movzx edx, byte [0x104f3353]
test edx, edx
je 0x1005cd70
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.1005c8b0
add esp, 0xc
cmp dword [0x104f3340], 0
jne 0x1005ce70
cmp dword [0x104f3368], 0
je 0x1005ce70
mov dword [ebp - 4], 0
cmp dword [0x104f38b4], 0
je 0x1005cde3
mov ecx, dword [ebp + 8]
push ecx
call fcn.10039ee0
add esp, 4
test eax, eax
jne 0x1005cdcc
mov edx, dword [ebp + 8]
push edx
push 0x103e0060
call fcn.1003def0
add esp, 8
mov dword [0x10661164], 0
xor eax, eax
jmp 0x1005cf72
mov eax, dword [0x104f3368]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10040010
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005ce06
cmp dword [0x104f3368], 0x200000
jbe 0x1005cdfa
mov edx, dword [0x104f3368]
mov dword [ebp - 8], edx
jmp 0x1005ce06
mov eax, dword [ebp + 8]
add eax, dword [0x104f3368]
mov dword [ebp - 8], eax
push 0x1005c600
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003d830
add esp, 0x18
test eax, eax
je 0x1005ce4e
push 0
mov eax, dword [0x104f3368]
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.1003def0
add esp, 0x14
mov dword [0x10661164], 1
jmp 0x1005ce70
mov eax, dword [ebp - 4]
push eax
push 0x103dffc8
call fcn.1003def0
add esp, 8
mov dword [0x10661164], 0
xor eax, eax
jmp 0x1005cf72
cmp dword [0x104f3344], 0
jne 0x1005cf6d
cmp dword [0x104f336c], 0
je 0x1005cf6d
mov dword [ebp - 4], 1
cmp dword [0x104f38b4], 0
je 0x1005cee3
mov ecx, dword [ebp + 8]
push ecx
call fcn.10039ee0
add esp, 4
test eax, eax
jne 0x1005cecc
mov edx, dword [ebp + 8]
push edx
push 0x103dff78
call fcn.1003def0
add esp, 8
mov dword [0x10661164], 0
xor eax, eax
jmp 0x1005cf72
mov eax, dword [0x104f336c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10040010
add esp, 8
mov dword [ebp - 8], eax
jmp 0x1005cf06
cmp dword [0x104f336c], 0x200000
jbe 0x1005cefa
mov edx, dword [0x104f336c]
mov dword [ebp - 8], edx
jmp 0x1005cf06
mov eax, dword [ebp + 8]
add eax, dword [0x104f336c]
mov dword [ebp - 8], eax
push 0x1005c600
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.1003d830
add esp, 0x18
test eax, eax
je 0x1005cf4e
push 0
mov eax, dword [0x104f336c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x103dff20
call fcn.1003def0
add esp, 0x14
mov dword [0x10661164], 1
jmp 0x1005cf6d
mov eax, dword [ebp - 4]
push eax
push 0x103dfee0
call fcn.1003def0
add esp, 8
mov dword [0x10661164], 0
xor eax, eax
jmp 0x1005cf72
mov eax, dword [0x10661164]
mov esp, ebp
pop ebp
ret