Function at 0x40b4f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e54a
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x428008]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x428008]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [esp + 0xb4]
mov byte [edi + 8], 0
call dword [eax]
push 4
call fcn.0040f826
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0xac], 0
test eax, eax
je 0x40b567
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x40b569
xor eax, eax
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0xac], 1
sub esp, 0x10
lea ecx, [esp + 0x5c]
push esi
call fcn.0040aa10
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x40b64a
lea ecx, [esp + 0x84]
call fcn.0040cc50
mov byte [esp + 0xac], 2
cmp dword [edi + 4], 0
je 0x40b5fe
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0xa4]
push eax
call fcn.00402230
mov byte [esp + 0xc4], 3
mov ecx, dword [edi + 4]
push 0
mov eax, dword [ecx]
mov byte [esp + 0xc8], 2
call dword [eax + 4]
mov byte [esp + 0xac], 1
cmp dword [esp + 0x98], 8
jb 0x40b61f
push dword [esp + 0x84]
call fcn.0040f7d6
add esp, 4
mov esi, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x98], 7
xor bl, bl
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
jmp 0x40b971
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x50]
movlpd qword [esp + 0x20], xmm0
call fcn.0040ab50
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
jne 0x40b729
mov dword [esp + 0x7c], eax
xor ecx, ecx
mov dword [esp + 0x80], eax
mov eax, 7
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], cx
mov byte [esp + 0xac], 4
cmp dword [edi + 4], ecx
je 0x40b6eb
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
xor eax, eax
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x8c]
push eax
call fcn.00402230
mov byte [esp + 0xc4], 5
mov ecx, dword [edi + 4]
push 0
mov eax, dword [ecx]
mov byte [esp + 0xc8], 4
call dword [eax + 4]
mov eax, dword [esp + 0x80]
mov byte [esp + 0xac], 1
cmp eax, 8
jb 0x40b704
push dword [esp + 0x6c]
call fcn.0040f7d6
add esp, 4
mov esi, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x80], 7
xor bl, bl
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jmp 0x40b971
xorps xmm0, xmm0
mov byte [esp + 0x17], 1
push 0x10000
mov dword [esp + 0x54], 0
movlpd qword [esp + 0x28], xmm0
call fcn.0040f016
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov edi, edi
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x40b8b0
test ebx, ebx
je 0x40b894
cmp dword [esi], 0xffffffff
je 0x40b8b0
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0
push eax
push 0x10000
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b894
cmp byte [edi + 8], 0
jne 0x40b81b
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x40b890
mov eax, dword [edi]
push ecx
push ebx
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
mov ebp, dword [edi + 4]
adc eax, 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x40b80e
mov esi, dword [ebp]
mov edx, eax
call fcn.0041d2be
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
movsd qword [esp + 0x44], xmm0
call fcn.0041d2be
movsd xmm1, qword [esp + 0x44]
sub esp, 8
divsd xmm1, xmm0
mov ecx, ebp
movsd qword [esp], xmm1
call dword [esi]
mov dword [esp + 0x50], 0
jmp 0x40b760
xor eax, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0xac], 6
lea eax, [esp + 0x54]
push eax
push 0
mov ecx, edi
call fcn.0040b9e0
xor al, al
mov byte [esp + 0x17], al
mov byte [esp + 0xac], 1
cmp dword [esp + 0x68], 8
jb 0x40b879
push dword [esp + 0x54]
call fcn.0040f7d6
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov esi, dword [esp + 0x4c]
mov eax, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40b8b6
push eax
call ebp
test eax, eax
je 0x40b8b6
mov dword [esi], 0xffffffff
jmp 0x40b8b6
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040fc0c
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 8]
mov eax, 7
mov dword [esp + 0x40], 0
mov dword [esp + 0x40], eax
xor ecx, ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
mov byte [esp + 0xac], al
cmp dword [edi + 4], ecx
je 0x40b93d
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
xor eax, eax
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x4c]
push eax
call fcn.00402230
mov byte [esp + 0xc4], 8
mov ecx, dword [edi + 4]
push 1
mov eax, dword [ecx]
mov byte [esp + 0xc8], 7
call dword [eax + 4]
mov eax, dword [esp + 0x40]
mov byte [esp + 0xac], 1
cmp eax, 8
jb 0x40b956
push dword [esp + 0x2c]
call fcn.0040f7d6
add esp, 4
mov bl, byte [esp + 0x17]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov dword [esp + 0xac], 0xffffffff
test esi, esi
je 0x40b9a5
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x40b994
test ecx, ecx
je 0x40b994
push ecx
call ebp
mov dword [esi], 0
push esi
call fcn.0040f7d6
add esp, 4
mov dword [esp + 0x4c], 0
mov al, bl
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0040f01f
add esp, 0x9c
ret 4