Function at 0x405e10
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42b828
push 0x4179a0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push eax
lea eax, [ebp - 0x222]
push eax
call fcn.00419530
add esp, 0xc
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0xffffffff
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 1
push str.mbae_report.dat
push 0x42ef70
push 0x4281e8
lea eax, [ebp - 0x224]
push eax
call fcn.004029c0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, 0xffffffff
jne 0x405f92
push 0x1000a
call fcn.00412ac8
add esp, 4
mov esi, eax
test esi, esi
jne 0x405f18
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x405f75
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push 9
test eax, eax
jle 0x405f54
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0xb9
mov ecx, str...MbaeGui.cpp
call fcn.00401280
add esp, 0x10
jmp 0x405f6c
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0041dd90
add esp, 0xc
mov eax, 9
jmp 0x4063b1
push 0
lea eax, [ebp - 0x234]
push eax
push 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406249
cmp dword [ebp - 0x234], 0xc
jne 0x406249
cmp dword [ebp - 0x230], 0x140004
jne 0x4061a2
cmp dword [ebp - 0x22c], 0x1908
jne 0x4061a2
mov edi, dword [ebp - 0x228]
test edi, edi
jne 0x406004
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0041dd90
add esp, 0xc
xor eax, eax
jmp 0x4063b1
mov dword [0x42f3c0], edi
lea eax, [edi + 0x64]
mov dword [0x42f3c8], eax
imul eax, eax, 0x1908
mov dword [ebp - 0x23c], eax
add eax, 0xa
push eax
call fcn.00412ac8
add esp, 4
mov ebx, eax
mov dword [0x42f3c4], ebx
test ebx, ebx
jne 0x4060e1
push 0x1000a
call fcn.00412ac8
add esp, 4
mov esi, eax
test esi, esi
jne 0x406067
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4060c4
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push 5
test eax, eax
jle 0x4060a3
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0xcb
mov ecx, str...MbaeGui.cpp
call fcn.00401280
add esp, 0x10
jmp 0x4060bb
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0041dd90
add esp, 0xc
mov eax, 5
jmp 0x4063b1
push dword [ebp - 0x23c]
push 0
push ebx
call fcn.00419530
add esp, 0xc
push 0
lea eax, [ebp - 0x234]
push eax
imul eax, edi, 0x1908
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40613a
imul eax, dword [0x42f3c0], 0x1908
cmp dword [ebp - 0x234], eax
jne 0x40613a
mov dword [ebp - 4], 0
call fcn.00406302
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4063b1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.00412ac8
add esp, 4
mov esi, eax
test esi, esi
je 0x40626b
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x4062c0
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0xd0
mov ecx, str...MbaeGui.cpp
call fcn.00401280
add esp, 0x10
jmp 0x4062d8
push 0x1000a
call fcn.00412ac8
add esp, 4
mov esi, eax
test esi, esi
jne 0x4061cf
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40622c
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push 6
test eax, eax
jle 0x40620b
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0xc0
mov ecx, str...MbaeGui.cpp
call fcn.00401280
add esp, 0x10
jmp 0x406223
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0041dd90
add esp, 0xc
mov eax, 6
jmp 0x4063b1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.00412ac8
add esp, 4
mov esi, eax
test esi, esi
jne 0x406285
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4062e1
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x4062c0
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0xbd
mov ecx, str...MbaeGui.cpp
call fcn.00401280
add esp, 0x10
jmp 0x4062d8
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0041dd90
add esp, 0xc
lea eax, [ebx + 0x1e]
jmp 0x4063b1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041297c
mov esp, ebp
pop ebp
ret