Function at 0x40f4e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461b98
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, 0x47d7b7
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xcc], eax
call fcn.0045e7c5
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x40f543
mov ecx, esi
call fcn.0040e290
add esi, 0x68
cmp esi, ebx
jne 0x40f533
mov esi, dword [edi]
mov eax, dword [ebp - 0xcc]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov dword [edi + 4], esi
mov byte [eax], 0
cmp dword [ebx + 0x14], 8
jb 0x40f55c
mov ecx, dword [ebx]
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, 0x80000000
call fcn.0040b6d0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x40fa6d
test esi, esi
je 0x40fa6d
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xdc]
movlpd qword [ebp - 0xd4], xmm0
push eax
lea eax, [ebp - 0xd4]
movlpd qword [ebp - 0xdc], xmm0
push eax
push ebx
movlpd qword [ebp - 0x24], xmm0
call fcn.0040fce0
test al, al
je 0x40f66e
mov ebx, dword [ebp - 0xd4]
mov ecx, ebx
mov eax, dword [ebp - 0xd0]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x40f66e
jb 0x40f612
cmp ecx, 0x4ffffe
ja 0x40f66e
lea eax, [ebp - 0xc5]
mov byte [ebp - 0xc5], 0
push eax
lea ecx, [ebp - 0x30]
push ecx
push ebx
call fcn.004131f0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push ebx
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp ecx, dword [ebp - 0xd0]
ja 0x40f66e
jb 0x40f655
cmp eax, ebx
jae 0x40f66e
mov byte [ebp - 0xc5], cl
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0xc5]
push ecx
push edx
push eax
mov ecx, edx
call fcn.004131f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jne 0x40f684
xor bl, bl
jmp 0x40fa1d
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.0041f610
mov byte [ebp - 4], 2
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
sub ecx, eax
push edx
push ecx
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041f930
mov ebx, dword [ebp - 0x3c]
test al, al
je 0x40f6f2
mov eax, dword [ebp - 0x38]
xor edx, edx
sub eax, ebx
mov ecx, 0x3e8
div ecx
mov esi, eax
mov dword [ebp - 0x20], esi
test edx, edx
je 0x40f702
mov eax, dword [ebp - 0xcc]
xor bl, bl
mov byte [eax], 1
jmp 0x40f9d0
test esi, esi
jne 0x40f70d
mov bl, 1
jmp 0x40f9d0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
push esi
mov ecx, eax
call fcn.00412a50
imul eax, esi, 0x3e8
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.00424d30
add esp, 0xc
lea ecx, [ebp - 0x1c]
xor ebx, ebx
call fcn.004100e0
test eax, eax
je 0x40f7a0
xor esi, esi
mov eax, dword [ebp - 0x1c]
cmp dword [eax + esi], 0x23ab45db
jne 0x40f7c8
xor ecx, ecx
inc ebx
mov word [eax + esi + 0x282], cx
mov word [eax + esi + 0x382], cx
mov word [eax + esi + 0x3ca], cx
lea ecx, [ebp - 0x1c]
add esi, 0x3e8
call fcn.004100e0
cmp ebx, eax
jb 0x40f764
mov esi, dword [ebp - 0x20]
mov ecx, dword [edi + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [edi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x40f7e0
cmp esi, 0x2762762
ja 0x40fa8d
jmp 0x40f7d8
mov eax, dword [ebp - 0xcc]
xor bl, bl
mov byte [eax], 1
jmp 0x40f96c
push esi
mov ecx, edi
call fcn.00411630
lea ecx, [ebp - 0xa4]
call fcn.0040d510
mov byte [ebp - 4], 4
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
mov eax, 0x10624dd3
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x18]
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f952
xor ebx, ebx
mov dword [ebp - 0xd8], ebx
nop dword [eax + eax]
lea edx, [ebx + 4]
add edx, esi
mov ecx, edx
lea ebx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f830
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00404380
mov ebx, dword [ebp - 0xd8]
lea edx, [ebx + 0x284]
add edx, esi
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xd0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f865
sub ecx, dword [ebp - 0xd0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.00404380
mov eax, dword [esi + ebx + 0x3cc]
lea edx, [ebx + 0x384]
mov dword [ebp - 0x5c], eax
add edx, esi
mov eax, dword [esi + ebx + 0x3d0]
mov ecx, edx
mov dword [ebp - 0x58], eax
mov eax, dword [esi + ebx + 0x3d4]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + ebx + 0x3d8]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + ebx + 0x3dc]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + ebx + 0x3e0]
lea ebx, [ecx + 2]
mov dword [ebp - 0x48], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f8d0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00404380
mov ebx, dword [ebp - 0xd8]
lea ecx, [ebp - 0xa4]
push ecx
mov eax, dword [esi + ebx + 0x3e4]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 4]
mov byte [ebp - 0x40], 0
cmp dword [edi + 8], eax
je 0x40f919
mov ecx, eax
call fcn.0040e400
add dword [edi + 4], 0x68
jmp 0x40f921
push eax
mov ecx, edi
call fcn.00413020
mov ecx, dword [ebp - 0x18]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x1c]
add ebx, 0x3e8
inc dword [ebp - 0x20]
sub ecx, esi
imul ecx
mov dword [ebp - 0xd8], ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x20], eax
jb 0x40f820
mov eax, dword [ebp - 0xcc]
mov bl, 1
mov byte [eax], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.0040e290
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x40f9d0
mov ecx, dword [ebp - 0x14]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x40f9b1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa92
push ecx
push esi
call fcn.0042231b
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x40fa1d
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x40f9fe
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa97
push ecx
push edx
call fcn.0042231b
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x40fa69
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40fa4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa9c
push edx
push ecx
call fcn.0042231b
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov al, bl
jmp 0x40fa6f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004222da
mov esp, ebp
pop ebp
ret 0xc
call fcn.00411460
call fcn.0042d348
call fcn.0042d348
call fcn.0042d348
int3