Function at 0x40dbc0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
push dword [0x4352b8]
call fcn.00402ea1
mov esi, dword [esp + 0x14]
push str._n_n___PureBasic_Debugger_Report
push esi
mov ebx, dword [eax]
call sub.MSVCRT.dll_fprintf
push str._n_n_n
push esi
call sub.MSVCRT.dll_fprintf
push str._Included_source_files__n
push esi
call sub.MSVCRT.dll_fprintf
push 0x43004c
push str.___s_n
push esi
call sub.MSVCRT.dll_fprintf
xor edi, edi
add esp, 0x24
cmp dword [0x430081], edi
jle 0x40dc31
push dword [edi*4 + 0x430085]
push str.___s_n
push esi
call sub.MSVCRT.dll_fprintf
inc edi
add esp, 0xc
cmp edi, dword [0x430081]
jl 0x40dc13
push 0x42821c
push esi
call sub.MSVCRT.dll_fprintf
push str._Program_execution_information__n
push esi
call sub.MSVCRT.dll_fprintf
push 0
call sub.MSVCRT.dll_time
push 0x4257a0
push esi
mov dword [esp + 0x28], eax
call sub.MSVCRT.dll_fprintf
lea eax, [esp + 0x28]
push eax
call sub.MSVCRT.dll_ctime
push eax
push str.____Execution_time:__s
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str._______Commandline:__s
push esi
call sub.MSVCRT.dll_fprintf
push 0x4290ac
push esi
call sub.MSVCRT.dll_fprintf
push str._Error_information__n
push esi
call sub.MSVCRT.dll_fprintf
mov eax, dword [ebx + 0x14]
and eax, 0xfffff
inc eax
push eax
push str.___Current_Line:__d_n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0x28
push dword [ebx + 0x14]
call fcn.0040be60
push eax
push str.___Current_File:__s_n
push esi
call sub.MSVCRT.dll_fprintf
mov eax, dword [ebx + 0x20]
add esp, 0xc
add eax, 0xfffffffe
cmp eax, 7
ja case.0x40dcd8.4
jmp dword [eax*4 + 0x40deac]
push str.__Program_State:_error_n
jmp 0x40dd1c
push str.__Program_State:_halted_by__CallDebugger__n
jmp 0x40dd1c
push str.__Program_State:_program_ended_n
jmp 0x40dd1c
push str.__Program_State:_fatal_error_n
jmp 0x40dd1c
push str.__Program_State:_halted_by_Breakpoint_n
jmp 0x40dd1c
push str.__Program_State:_halted_by_User_n
jmp 0x40dd1c
push str.__Program_State:_halted_by_Data_Breakpoint_n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.__Program_State:_unknown_n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0x42821c
push esi
call sub.MSVCRT.dll_fprintf
push str._Global_variables_
push esi
call sub.MSVCRT.dll_fprintf
push 1
push 0
push 0xffffffffffffffff
push esi
call fcn.00411840
push 0x4290ac
push esi
call sub.MSVCRT.dll_fprintf
push str._Execution_history_
push esi
call sub.MSVCRT.dll_fprintf
push 1
push esi
call fcn.0040fea0
push 0x4257a0
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0x40
push str._Processor_registers_
push esi
call sub.MSVCRT.dll_fprintf
mov edi, dword [esp + 0x28]
add esp, 8
test edi, edi
jne 0x40dd99
push str._n__Cannot_display_register_values_at_this_point._n_n_n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x40ddae
push edi
push esi
call fcn.00410d30
push 0x4257a0
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0x10
push str._Stack_contents__n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 8
test edi, edi
jne 0x40ddc7
push str.__Cannot_display_stack_content_at_this_point._n_n_n
jmp 0x40ddd7
push 0
push 0
push edi
push esi
call fcn.0041da90
push 0x42821c
push esi
call sub.MSVCRT.dll_fprintf
add esp, 8
push str._Arrays__n
push esi
call sub.MSVCRT.dll_fprintf
push 0xffffffffffffffff
push 0
push esi
call fcn.0040f8c0
push 0x4257a0
push esi
call sub.MSVCRT.dll_fprintf
push str._Linked_Lists__n
push esi
call sub.MSVCRT.dll_fprintf
push 0xffffffffffffffff
push 0
push esi
call fcn.00410390
push 0x4257a0
push esi
call sub.MSVCRT.dll_fprintf
push str._Maps__n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0x40
push 0xffffffffffffffff
push 0
push esi
call fcn.00410ac0
push 0x4257a0
push esi
call sub.MSVCRT.dll_fprintf
push str._Environment_variables__n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
mov edi, ebx
cmp byte [ebx], 0
je 0x40de84
push edi
push str.___s_n
push esi
call sub.MSVCRT.dll_fprintf
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de74
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], al
jne 0x40de60
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x42821c
push esi
call sub.MSVCRT.dll_fprintf
push str._n_n_n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret