Function at 0x3f006aa5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
push edi
dec eax
dec eax
push 0
mov dword [ebp - 8], ecx
pop ebx
jne 0x3f009298
mov eax, dword [esi]
cmp eax, ebx
je 0x3f006c58
cmp word [eax], bx
je 0x3f006c58
mov ecx, dword [ebp + 0xc]
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push ebx
push 0xc0000000
push eax
mov byte [ebp + 0xb], 1
mov dword [ecx + 0x10], ebx
call fcn.3f006c5f
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x3f006c36
push ebx
push edi
push 3
push ebx
push ebx
push 0x80000000
push dword [esi]
call fcn.3f006c5f
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x3f006c43
cmp eax, ebx
je 0x3f006c43
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], 1
cmp dword [esi + 8], 3
je 0x3f006b62
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3f006b62
cmp dword [ebp - 0xc], 4
jne 0x3f006b62
cmp dword [ebp - 0x10], 0x779ff320
je 0x3f0092b3
push 0x3c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
je 0x3f006c51
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.3f006991
mov edi, eax
cmp edi, ebx
je 0x3f009390
cmp dword [edi + 0x2c], ebx
je 0x3f009390
push dword [esi]
call fcn.3f003788
pop ecx
lea eax, [eax + eax + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [edi + 0x20], eax
je 0x3f009390
push dword [esi]
push eax
call fcn.3f0011b4
cmp byte [ebp + 0xb], bl
mov eax, dword [ebp - 4]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
pop ecx
pop ecx
mov dword [edi + 0x34], eax
je 0x3f0092f0
mov ecx, edi
call fcn.3f005bf7
push dword [ebp - 4]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
mov dword [edi + 0x24], ebx
jne 0x3f0093ab
cmp dword [esi + 8], 3
je 0x3f009338
mov ecx, dword [ebp - 8]
push edi
call fcn.3f007a51
test al, al
je 0x3f00936c
mov esi, dword [ebp + 0xc]
mov ax, word [edi + 0x14]
mov word [esi + 0x14], ax
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esi + 4], edi
mov dword [esi + 0xc], ebx
ja 0x3f009346
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp eax, ebx
jne 0x3f006b31
jmp 0x3f006b01
cmp dword [esi + 4], ebx
jne 0x3f0092e8
jmp 0x3f0092de
xor edi, edi
jmp 0x3f006b85
push 2
jmp 0x3f0093bf
dec eax
je 0x3f0092a2
push 5
jmp 0x3f0093bf
cmp dword [ecx + 0x590], ebx
jne 0x3f009374
jmp 0x3f006ac2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x18], 4
call fcn.3f00781f
jmp 0x3f006c2f
mov eax, 0x920004
jmp 0x3f006c2f
mov byte [ebp + 0xb], bl
jmp 0x3f006b62
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push dword [esi]
call fcn.3f006c5f
cmp eax, 0xffffffff
mov dword [edi + 0x24], eax
je 0x3f00937e
cmp eax, ebx
je 0x3f00937e
mov ecx, edi
call fcn.3f007aec
push dword [edi + 0x24]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [edi + 0x24], ebx
jne 0x3f006c2f
jmp 0x3f006bf6
mov eax, dword [ebp - 8]
mov dword [eax + 0x590], edi
jmp 0x3f006c11
mov ecx, dword [esi]
cmp ecx, ebx
je 0x3f006c2d
add eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x3f006c58
mov eax, dword [esi]
mov word [eax], bx
jmp 0x3f006c2d
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, 0x910004
jmp 0x3f006c2f
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, 0x8a0004
jmp 0x3f006c2f
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], 1
je 0x3f0093ab
cmp dword [ebp - 4], 0xffffffff
je 0x3f0093ab
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x3f0093b7
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebp + 8]
jmp 0x3f006c2f
pop eax
jmp 0x3f006c2f