Function at 0x41b240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
push ecx
lea edi, [ebp - 0x21c]
mov ecx, 0x87
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x41b26f
xor eax, eax
jmp 0x41b53c
push 0x6727b8
mov eax, dword [ebp + 8]
push eax
call fcn.00619870
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x41b529
push 2
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.00615920
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.006192a0
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call fcn.00615920
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.0041b760
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push 1
push 0xc
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
call fcn.00616930
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
sub edx, ecx
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x12c
call fcn.00402b80
test eax, eax
jne 0x41b34f
mov eax, str.Bin_File_Version_Error_
test eax, eax
je 0x41b32e
push 0x28
push str.MHFile.cpp
call fcn.00458050
test eax, eax
je 0x41b32e
int3
mov esi, esp
push 0
push 0
push str.Bin_File_Version_Error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00614e40
xor eax, eax
jmp 0x41b53c
mov ecx, dword [ebp - 4]
add ecx, 0x12c
call fcn.00402b20
test eax, eax
je 0x41b471
mov edx, dword [ebp - 8]
sub edx, 0xe
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004218f0
add esp, 4
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x218]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x41b3b6
mov ecx, str.memory_allocation_failed___m_pData
test ecx, ecx
je 0x41b3af
push 0x32
push str.MHFile.cpp
call fcn.00458050
test eax, eax
je 0x41b3af
int3
xor eax, eax
jmp 0x41b53c
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00614f30
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x12c
call fcn.00402fb0
test eax, eax
jne 0x41b453
mov ecx, dword [ebp - 4]
call fcn.0041b760
mov ecx, str.File_Open_Error
test ecx, ecx
je 0x41b418
push 0x39
push str.MHFile.cpp
call fcn.00458050
test eax, eax
je 0x41b418
int3
mov eax, dword [ebp + 8]
push eax
push str.File_Open_Error_:__s
lea ecx, [ebp - 0x210]
push ecx
call fcn.0061df40
add esp, 0xc
mov esi, esp
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00614e40
xor eax, eax
jmp 0x41b53c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.00619060
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
jmp 0x41b527
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
mov edx, dword [ebp - 4]
add edx, 0x1c
push edx
call fcn.00616930
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x41b4d4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call fcn.004218f0
add esp, 4
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x21c]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00616930
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 1
push 1
mov ecx, dword [ebp - 4]
add ecx, 0x1d
push ecx
call fcn.00616930
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call fcn.00619060
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 4]
call fcn.0041b580
test eax, eax
jne 0x41b517
xor eax, eax
jmp 0x41b53c
mov ecx, dword [ebp - 4]
call fcn.0041b620
test eax, eax
jne 0x41b527
xor eax, eax
jmp 0x41b53c
jmp 0x41b52d
xor eax, eax
jmp 0x41b53c
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], 1
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x41b564]
call fcn.00614e70
pop eax
pop edx
pop edi
pop esi
add esp, 0x21c
cmp ebp, esp
call fcn.00614e40
mov esp, ebp
pop ebp
ret 4