Function at 0x424550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x308]
mov ecx, 0xc2
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4d8ed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
jne 0x42458a
xor eax, eax
jmp 0x424872
push 0x4be38c
mov eax, dword [ebp + 8]
push eax
call fcn.00464aa0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x42485f
push 2
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004655c0
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00466800
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004655c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
call fcn.00424ac0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 1
push 0xc
mov edx, dword [ebp - 0xc]
add edx, 0x10
push edx
call fcn.004667c0
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x18]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
sub edx, ecx
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
call fcn.004557f0
test eax, eax
jne 0x424673
mov eax, str.Bin_File_Version_Error_
neg eax
sbb eax, eax
add eax, 1
jne 0x424652
push 0
mov eax, dword [0x4d8214]
add eax, 0x11
push eax
push 0x4be394
call fcn.004509b0
add esp, 0xc
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.0045dfa0
xor eax, eax
jmp 0x424872
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
call fcn.00455780
test eax, eax
je 0x4247a7
mov eax, dword [ebp - 0x18]
sub eax, 0xe
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0045be20
add esp, 4
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x304]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
jne 0x4246e3
mov eax, str.memory_allocation_failed___m_pData
neg eax
sbb eax, eax
add eax, 1
jne 0x4246dc
push 0
mov eax, dword [0x4d8214]
add eax, 0x1b
push eax
push 0x4be394
call fcn.004509b0
add esp, 0xc
xor eax, eax
jmp 0x424872
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
call fcn.0045ea40
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
call fcn.00455c20
test eax, eax
jne 0x424789
mov ecx, dword [ebp - 0xc]
call fcn.00424ac0
mov eax, str.File_Open_Error
neg eax
sbb eax, eax
add eax, 1
jne 0x42474e
push 0
mov eax, dword [0x4d8214]
add eax, 0x22
push eax
push 0x4be394
call fcn.004509b0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.File_Open_Error_:__s
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0045e190
add esp, 0xc
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.0045dfa0
xor eax, eax
jmp 0x424872
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00464b60
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
jmp 0x42485d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
mov edx, dword [ebp - 0xc]
add edx, 0x1c
push edx
call fcn.004667c0
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x42480a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.0045be20
add esp, 4
mov dword [ebp - 0x2f8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2f8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
call fcn.004667c0
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
mov edx, dword [ebp - 0xc]
add edx, 0x1d
push edx
call fcn.004667c0
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00464b60
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
call fcn.004248c0
test eax, eax
jne 0x42484d
xor eax, eax
jmp 0x424872
mov ecx, dword [ebp - 0xc]
call fcn.00424980
test eax, eax
jne 0x42485d
xor eax, eax
jmp 0x424872
jmp 0x424863
xor eax, eax
jmp 0x424872
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], 1
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4248a4]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e500
add esp, 0x308
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret 4