Function at 0x40b9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x49c014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [0x49e5ec]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ba0b
lea eax, [ebx + 0x65]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461195
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x624]
push 0
push eax
push 0x20
push 0x49e564
push ebx
call edi
test eax, eax
je 0x40bcf4
mov eax, dword [ebp - 0x624]
cmp eax, 0xffffffff
jne 0x40ba50
mov esi, 0x40000001
jmp 0x40bd07
cmp eax, 0x20
je 0x40ba5f
mov esi, 0x40000002
jmp 0x40bd07
mov eax, dword [0x49e570]
xor esi, esi
test eax, eax
je 0x40ba72
sub eax, 0x20
mov dword [0x49e570], eax
imul eax, dword [0x49e580], 0x104
push 2
add eax, 2
push eax
call fcn.00464c74
add esp, 8
mov dword [ebp - 0x628], eax
mov dword [0x49e7d0], eax
test eax, eax
jne 0x40baa1
lea esi, [eax + 0x66]
jmp 0x40bd07
xor ecx, ecx
mov dword [eax], ecx
mov dword [ebp - 0x624], ecx
cmp dword [0x49e580], ecx
jle 0x40bd07
push 0
lea eax, [ebp - 0x630]
mov esi, 0x104
push eax
push 2
lea eax, [ebp - 0x620]
push eax
push ebx
call edi
test eax, eax
je 0x40bcf4
mov eax, dword [ebp - 0x630]
cmp eax, 0xffffffff
je 0x40ba46
cmp eax, 2
jne 0x40ba55
mov ax, word [ebp - 0x620]
test ax, ax
je 0x40bced
cmp ax, si
jae 0x40bced
movzx esi, ax
lea eax, [ebp - 0x634]
push 0
push eax
add esi, esi
lea eax, [ebp - 0x61c]
push esi
push eax
push ebx
call edi
test eax, eax
je 0x40bcf4
mov eax, dword [ebp - 0x634]
cmp eax, 0xffffffff
je 0x40ba46
cmp eax, esi
jne 0x40ba55
movzx eax, word [ebp - 0x620]
add eax, eax
cmp eax, 0x208
jae 0x40bd21
xor ecx, ecx
mov word [ebp + eax - 0x61c], cx
xor eax, eax
xor cl, cl
mov word [ebp - 0x414], ax
call fcn.0040bd30
test eax, eax
je 0x40bb90
lea edx, [ebp - 0x414]
sub edx, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40bb80
lea edx, [ebp - 0x61c]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bba0
lea edi, [ebp - 0x414]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40bbb6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x628]
lea ecx, [ebp - 0x414]
mov edx, esi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40bbe2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bbf7
sub ecx, edx
xor eax, eax
sar ecx, 1
lea edx, [ebp - 0x63c]
push 4
lea esi, [esi + ecx*2]
mov ecx, ebx
add esi, 2
mov dword [ebp - 0x628], esi
mov word [esi], ax
call fcn.0040b960
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bd07
lea ecx, [ebp - 0x414]
call fcn.0040b750
test eax, eax
jne 0x40bce6
lea ecx, [ebp - 0x414]
call fcn.0040b940
mov edi, eax
cmp edi, 0xffffffff
je 0x40bcdf
push 4
lea edx, [ebp - 0x62c]
mov ecx, ebx
call fcn.0040b960
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bcd6
push 1
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x62c]
mov dword [ebp - 0x638], eax
push ebx
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_766]
mov esi, eax
test esi, esi
jne 0x40bcd6
push eax
push eax
mov eax, dword [ebp - 0x62c]
add eax, dword [ebp - 0x638]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x624]
inc edi
mov dword [ebp - 0x624], edi
cmp edi, dword [0x49e580]
jge 0x40bd07
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40bab7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bd07
mov esi, 0x68
jmp 0x40bd07
mov esi, 0x67
jmp 0x40bd07
mov esi, 0x65
jmp 0x40bd07
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 0x26]
neg esi
sbb esi, esi
add esi, 0x40000002
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461195
mov esp, ebp
pop ebp
ret
call fcn.00461305
int3