Function at 0x4243c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [esp + 0x234]
stosb byte es:[edi], al
mov eax, dword [esp + 0x240]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jne 0x42452c
mov eax, dword [esp + 0x230]
mov ebx, dword [esp + 0x22c]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
call fcn.00424b60
mov edx, dword [esp + 0x248]
mov eax, dword [esp + 0x244]
push edx
push eax
lea ecx, [esp + 0x3c]
push ebp
push ecx
push ebx
call fcn.00424870
add esp, 0x20
test eax, eax
jne 0x4247b0
lea edx, [esp + 0x28]
push 0x43a35c
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x424479
lea eax, [esp + 0x28]
push eax
push 0x43a5cc
push ebx
call fcn.00420310
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
push 2
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov dword [esp + 0x2c], eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0x20
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
push esi
jne 0x4244c6
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov edx, dword [esp + 0x14]
push edx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x24]
push eax
push edi
call fcn.00425ee0
add esp, 0x1c
test eax, eax
je 0x424528
mov ecx, dword [esp + 0x10]
add ebx, 0x22cb
push ebx
push ecx
push edi
call fcn.00425c20
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x424523
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
lea eax, [edi + 8]
jmp 0x42456d
mov eax, edi
jmp 0x424569
mov ecx, dword [esp + 0x230]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push str._d__d
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.MSVCRT.dll_sscanf]
mov edx, dword [esp + 0x2c]
add esp, 0x10
push 4
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4246da
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
cmp ebx, 0x36
jae 0x42459c
mov eax, dword [esp + 0x240]
test eax, eax
jne 0x4246da
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
cmp word [eax], 0x4d42
lea edx, [eax + 0xe]
je 0x4245d0
mov eax, dword [esp + 0x240]
test eax, eax
jne 0x4246da
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov ecx, 0xa
mov esi, edx
mov edi, ebp
mov dword [esp + 0x24], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
test ecx, ecx
jge 0x4245f7
neg ecx
mov dword [esp + 0x24], 0
mov dword [ebp + 8], ecx
cmp word [edx + 0xe], 0x18
je 0x424618
mov edx, dword [esp + 0x22c]
push 0x43a5b8
push edx
call fcn.00420310
add esp, 8
jmp 0x424572
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x424629
push 0x43a5a8
jmp 0x4246b1
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x23c]
lea ecx, [ecx*4 + 3]
and ecx, 0xfffffffc
mov dword [esi], ecx
mov edx, dword [eax + 0xa]
cmp edx, ebx
jbe 0x424681
mov edx, dword [esp + 0x22c]
push 0x43a590
push edx
call fcn.00420310
mov eax, dword [esp + 0x248]
add esp, 8
test eax, eax
jne 0x4246da
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
imul ecx, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 4]
inc eax
push ecx
mov dword [esp + 0x1c], edx
lea edi, [eax + eax*2]
and edi, 0xfffffffc
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, dword [esp + 0x23c]
add esp, 4
test eax, eax
mov dword [ebx], eax
jne 0x4246e7
push 0x43a44c
mov ecx, dword [esp + 0x230]
push ecx
call fcn.00420310
mov eax, dword [esp + 0x248]
add esp, 8
test eax, eax
jne 0x4246da
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
mov edx, eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x20], 0
jle 0x424760
mov eax, dword [ebp + 4]
xor esi, esi
test eax, eax
jle 0x42472d
mov ecx, dword [esp + 0x18]
lea eax, [edx + 2]
add ecx, 2
mov bl, byte [ecx - 2]
inc esi
mov byte [eax - 2], bl
mov bl, byte [ecx - 1]
mov byte [eax - 1], bl
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [eax + 1], 0
mov ebx, dword [ebp + 4]
add ecx, 3
add eax, 4
cmp esi, ebx
jl 0x42470b
mov eax, dword [esp + 0x23c]
mov ebx, dword [esp + 0x18]
add ebx, edi
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [ebp + 8]
inc eax
mov dword [esp + 0x18], ebx
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4246f8
mov esi, dword [esp + 0x23c]
mov ebx, dword [esp + 0x238]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x424782
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov eax, dword [ebx]
push ecx
mov ecx, dword [esp + 0x230]
push edx
push eax
push ecx
call fcn.004247c0
add esp, 0x10
mov eax, dword [esp + 0x240]
test eax, eax
jne 0x4247b0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x230]
push esi
push ebx
lea eax, [esp + 0x34]
push ebp
push eax
push ecx
call fcn.004249a0
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret