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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [0x426e5c]
push edi
push eax
mov ebx, ecx
call fcn.00417c55
mov ebp, dword [eax]
push str._n_n___PureBasic_Debugger_Report
push ebx
call sub.MSVCRT.dll_fprintf
push str._n_n_n
push ebx
call sub.MSVCRT.dll_fprintf
push str._Included_source_files__n
push ebx
call sub.MSVCRT.dll_fprintf
push str.C:UsersHQ581AppDataLocalTempPB_EditorOutput.pb
push 0x41cf10
push ebx
call sub.MSVCRT.dll_fprintf
xor edi, edi
add esp, 0x24
cmp dword [0x41f245], edi
jle 0x40bbc1
jmp 0x40bba0
mov ecx, dword [edi*4 + 0x41f249]
push ecx
push 0x41cf10
push ebx
call sub.MSVCRT.dll_fprintf
add edi, 1
add esp, 0xc
cmp edi, dword [0x41f245]
jl 0x40bba0
push 0x41c6f4
push ebx
call sub.MSVCRT.dll_fprintf
push str._Program_execution_information__n
push ebx
call sub.MSVCRT.dll_fprintf
push 0
call sub.MSVCRT.dll_time
push 0x41bffc
push ebx
mov dword [esp + 0x2c], eax
call sub.MSVCRT.dll_fprintf
lea edx, [esp + 0x2c]
push edx
call sub.MSVCRT.dll_ctime
push eax
push str.____Execution_time:__s
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str._______Commandline:__s
push ebx
call sub.MSVCRT.dll_fprintf
push 0x41ceb8
push ebx
call sub.MSVCRT.dll_fprintf
push str._Error_information__n
push ebx
call sub.MSVCRT.dll_fprintf
mov eax, dword [ebp + 0x14]
and eax, 0xffffff
add eax, 1
push eax
push str.___Current_Line:__d_n
push ebx
call sub.MSVCRT.dll_fprintf
mov eax, dword [ebp + 0x14]
call fcn.00403960
push eax
push str.___Current_File:__s_n
push ebx
call sub.MSVCRT.dll_fprintf
mov ebp, dword [ebp + 0x20]
lea eax, [ebp - 2]
add esp, 0x34
cmp eax, 6
ja case.0x40bc67.4
jmp dword [eax*4 + 0x40be00]
push str.__Program_State:_error_n
jmp 0x40bc9d
push str.__Program_State:_halted_by__CallDebugger__n
jmp 0x40bc9d
push str.__Program_State:_program_ended_n
jmp 0x40bc9d
push str.__Program_State:_fatal_error_n
jmp 0x40bc9d
push str.__Program_State:_halted_by_Breakpoint_n
jmp 0x40bc9d
push str.__Program_State:_halted_by_User_n
jmp 0x40bc9d
push str.__Program_State:_unknown_n
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0x41c6f4
push ebx
call sub.MSVCRT.dll_fprintf
push str._Global_variables_
push ebx
call sub.MSVCRT.dll_fprintf
push 1
push 0
push ebx
call fcn.00409ce0
push 0x41ceb8
push ebx
call sub.MSVCRT.dll_fprintf
push str._Execution_history_
push ebx
call sub.MSVCRT.dll_fprintf
push 1
mov edi, ebx
call fcn.0040a810
push 0x41bffc
push ebx
call sub.MSVCRT.dll_fprintf
push str._Processor_registers_
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 0x40
test esi, esi
jne 0x40bd09
push str._n__Cannot_display_register_values_at_this_point._n_n_n
jmp 0x40bd13
call fcn.0040a520
push 0x41bffc
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str._Stack_contents__n
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 8
test esi, esi
jne 0x40bd3e
push str.__Cannot_display_stack_content_at_this_point._n_n_n
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x40bd57
push 0
push 0
push esi
push ebx
call fcn.004075b0
push 0x41c6f4
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 0x18
push str._Arrays__n
push ebx
call sub.MSVCRT.dll_fprintf
call fcn.0040afe0
push 0x41bffc
push ebx
call sub.MSVCRT.dll_fprintf
push str._Linked_Lists__n
push ebx
call sub.MSVCRT.dll_fprintf
push ebx
call fcn.0040b370
push 0x41bffc
push ebx
call sub.MSVCRT.dll_fprintf
push str._Environment_variables__n
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
cmp byte [edi], 0
mov esi, edi
je 0x40bdd9
jmp 0x40bdb0
push esi
push 0x41cf10
push ebx
call sub.MSVCRT.dll_fprintf
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bdc4
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x40bdb0
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x41c6f4
push ebx
call sub.MSVCRT.dll_fprintf
push str._n_n_n
push ebx
call sub.MSVCRT.dll_fprintf
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret