Function at 0x428420
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [esp + 0x250]
xor ebx, ebx
stosb byte es:[edi], al
mov eax, dword [esp + 0x25c]
mov dword [esp + 0x24], ebx
cmp eax, ebx
mov dword [esp + 0x34], ebx
jne 0x42862a
mov eax, dword [esp + 0x24c]
mov edi, dword [esp + 0x248]
lea ecx, [esp + 0x44]
push eax
push ecx
push edi
call fcn.00428ca0
mov esi, dword [esp + 0x264]
mov edx, dword [esp + 0x260]
push esi
push edx
lea eax, [esp + 0x58]
push ebp
push eax
push edi
call fcn.00428990
add esp, 0x20
test eax, eax
jne 0x4288d3
mov eax, dword [esp + 0x260]
test eax, eax
jne 0x4285b2
lea ecx, [esp + 0x28]
lea edx, [esp + 0x44]
push ecx
push edx
mov byte [esp + 0x30], 0x72
mov byte [esp + 0x31], 0x62
mov byte [esp + 0x32], bl
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42854a
mov cl, 0xce
mov byte [esp + 0x20], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x18], cl
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
mov byte [esp + 0x1d], 0xde
mov byte [esp + 0x1e], 0xb7
mov byte [esp + 0x1f], 0xa8
mov byte [esp + 0x20], 0xb4
mov byte [esp + 0x21], 0xf2
mov byte [esp + 0x22], 0xbf
mov byte [esp + 0x23], 0xaa
mov byte [esp + 0x25], 0xc4
mov byte [esp + 0x26], 0xbc
mov byte [esp + 0x27], 0xfe
mov byte [esp + 0x28], 0x3c
mov byte [esp + 0x29], 0x25
mov byte [esp + 0x2a], 0x73
mov byte [esp + 0x2b], 0x3e
call fcn.00423660
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov dword [esp + 0x40], eax
call ebx
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0x20
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
push esi
jne 0x428598
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
mov eax, dword [esp + 0x28]
push eax
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
jmp 0x4285ee
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], ebx
je 0x4287f6
mov ecx, dword [esi]
mov edx, dword [esp + 0x254]
mov eax, ecx
mov edi, ebx
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x248]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
call fcn.0042a1e0
add esp, 8
test eax, eax
je 0x428626
mov edx, dword [esp + 0x24]
add edi, 0x22d3
push edi
push edx
push ebx
call fcn.00429ea0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x4287ec
lea eax, [ebx + 8]
jmp 0x428685
mov eax, ebx
jmp 0x428685
mov al, 0x64
mov cl, 0x25
mov byte [esp + 0x2d], al
mov byte [esp + 0x30], al
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2f], cl
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x250]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3e], 0x2c
mov byte [esp + 0x41], 0
call dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x38]
add esp, 0x10
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4287f6
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x24], 0x36
jb 0x4287e1
cmp word [eax], 0x4d42
lea edx, [eax + 0xe]
jne 0x4287e1
mov ecx, 0xa
mov esi, edx
mov edi, ebp
mov dword [esp + 0x40], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
test ecx, ecx
jge 0x4286c5
neg ecx
mov dword [esp + 0x40], 0
mov dword [ebp + 8], ecx
cmp word [edx + 0xe], 0x18
je 0x428731
mov cl, 0xd6
mov al, 0xbb
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x15], cl
mov byte [esp + 0x19], al
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0x248]
lea edx, [esp + 0x10]
mov cl, 0xce
push edx
mov byte [esp + 0x17], 0xa7
mov byte [esp + 0x18], 0xb3
mov byte [esp + 0x1a], 0x32
mov byte [esp + 0x1b], 0x34
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1e], 0xc9
mov byte [esp + 0x1f], 0xab
mov byte [esp + 0x20], cl
mov byte [esp + 0x22], 0xcd
mov byte [esp + 0x23], 0xbc
mov byte [esp + 0x24], 0
push eax
jmp 0x4287d9
mov ecx, dword [edx + 0x10]
test ecx, ecx
jne 0x4287e1
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x258]
mov edi, dword [esp + 0x24]
lea ecx, [ecx*4 + 3]
and ecx, 0xfffffffc
mov dword [esi], ecx
mov edx, dword [eax + 0xa]
cmp edx, edi
ja 0x4287e1
imul ecx, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp + 4]
inc eax
push ecx
mov dword [esp + 0x3c], edx
lea edi, [eax + eax*2]
and edi, 0xfffffffc
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esp + 0x258]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x428803
mov ecx, dword [esp + 0x248]
mov byte [esp + 0x1c], al
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0xc4
push eax
mov byte [esp + 0x15], 0xda
mov byte [esp + 0x16], 0xb4
mov byte [esp + 0x17], 0xe6
mov byte [esp + 0x18], 0xb7
mov byte [esp + 0x19], 0xd6
mov byte [esp + 0x1a], 0xc5
mov byte [esp + 0x1b], 0xe4
mov byte [esp + 0x1c], 0xca
mov byte [esp + 0x1d], 0xa7
mov byte [esp + 0x1e], 0xb0
mov byte [esp + 0x1f], 0xdc
push ecx
call fcn.00423660
add esp, 8
mov eax, dword [esp + 0x25c]
test eax, eax
jne 0x4287f6
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x234
ret
mov edx, eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x3c], 0
jle 0x428879
mov eax, dword [ebp + 4]
xor esi, esi
test eax, eax
jle 0x42884d
mov ecx, dword [esp + 0x38]
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 0x428827
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x258]
mov ecx, dword [eax]
mov eax, dword [esp + 0x38]
add eax, edi
add edx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x428814
mov esi, dword [esp + 0x258]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4288a2
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x254]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x250]
push ecx
push edx
call fcn.004288f0
add esp, 0x10
mov eax, dword [esp + 0x25c]
test eax, eax
jne 0x4288d3
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x258]
mov edx, dword [esp + 0x24c]
push esi
push eax
lea ecx, [esp + 0x50]
push ebp
push ecx
push edx
call fcn.00428ad0
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x234
ret