Function at 0x40b6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x49b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [0x49d5e4]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b70b
lea eax, [ebx + 0x65]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046082b
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 0x49d55c
push ebx
call edi
test eax, eax
je 0x40b9f4
mov eax, dword [ebp - 0x624]
cmp eax, 0xffffffff
jne 0x40b750
mov esi, 0x40000001
jmp 0x40ba07
cmp eax, 0x20
je 0x40b75f
mov esi, 0x40000002
jmp 0x40ba07
mov eax, dword [0x49d568]
xor esi, esi
test eax, eax
je 0x40b772
sub eax, 0x20
mov dword [0x49d568], eax
imul eax, dword [0x49d578], 0x104
push 2
add eax, 2
push eax
call fcn.00464304
add esp, 8
mov dword [ebp - 0x628], eax
mov dword [0x49d7c0], eax
test eax, eax
jne 0x40b7a1
lea esi, [eax + 0x66]
jmp 0x40ba07
xor ecx, ecx
mov dword [eax], ecx
mov dword [ebp - 0x624], ecx
cmp dword [0x49d578], ecx
jle 0x40ba07
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 0x40b9f4
mov eax, dword [ebp - 0x630]
cmp eax, 0xffffffff
je 0x40b746
cmp eax, 2
jne 0x40b755
mov ax, word [ebp - 0x620]
test ax, ax
je 0x40b9ed
cmp ax, si
jae 0x40b9ed
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 0x40b9f4
mov eax, dword [ebp - 0x634]
cmp eax, 0xffffffff
je 0x40b746
cmp eax, esi
jne 0x40b755
movzx eax, word [ebp - 0x620]
add eax, eax
cmp eax, 0x208
jae 0x40ba21
xor ecx, ecx
mov word [ebp + eax - 0x61c], cx
xor eax, eax
xor cl, cl
mov word [ebp - 0x414], ax
call fcn.0040ba30
test eax, eax
je 0x40b890
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 0x40b880
lea edx, [ebp - 0x61c]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40b8a0
lea edi, [ebp - 0x414]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b8b6
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 0x40b8e2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8f7
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.0040b660
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ba07
lea ecx, [ebp - 0x414]
call fcn.0040b450
test eax, eax
jne 0x40b9e6
lea ecx, [ebp - 0x414]
call fcn.0040b640
mov edi, eax
cmp edi, 0xffffffff
je 0x40b9df
push 4
lea edx, [ebp - 0x62c]
mov ecx, ebx
call fcn.0040b660
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b9d6
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 [0x49c568]
mov esi, eax
test esi, esi
jne 0x40b9d6
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 [0x49d578]
jge 0x40ba07
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
jmp 0x40b7b7
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40ba07
mov esi, 0x68
jmp 0x40ba07
mov esi, 0x67
jmp 0x40ba07
mov esi, 0x65
jmp 0x40ba07
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.0046082b
mov esp, ebp
pop ebp
ret
call fcn.0046099b
int3