Function at 0x100407f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7091
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x10123068]
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 edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push ecx
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc8], ebx
call fcn.10041bb0
mov eax, dword [edi]
push 0x80
push 3
push ecx
mov dword [edi + 4], eax
mov ecx, esi
push 0
mov byte [ebx], 0
call fcn.10002b10
mov edx, 0x80000000
mov ecx, eax
call fcn.10030650
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x100409ec
test esi, esi
je 0x100409ec
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.100091e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xe0]
movlpd qword [ebp - 0xd0], xmm0
push eax
lea eax, [ebp - 0xd0]
movlpd qword [ebp - 0xe0], xmm0
push eax
push dword [ebp - 0x14]
movlpd qword [ebp - 0xd8], xmm0
call fcn.10040f90
test al, al
je 0x10040966
mov ebx, dword [ebp - 0xd0]
mov ecx, ebx
mov eax, dword [ebp - 0xcc]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x10040960
jb 0x10040900
cmp ecx, 0x4ffffe
ja 0x10040960
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1002f0b0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
call fcn.10002b60
push 0
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [eax]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp ecx, dword [ebp - 0xcc]
ja 0x10040960
jb 0x1004094a
cmp eax, ebx
jae 0x10040960
mov byte [ebp - 0xc1], cl
lea ecx, [ebp - 0xc1]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1002f0b0
mov ebx, dword [ebp - 0xc8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10002b60
lea edx, [eax + 4]
call fcn.10002b60
mov esi, eax
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x100409dd
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.100091e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.1005a590
mov edx, dword [edx]
lea ecx, [ebp - 0x2c]
sub edx, dword [esi]
call fcn.10002b60
lea ecx, [ebp - 0x38]
push ecx
push edx
mov eax, dword [eax]
lea ecx, [ebp - 0xc0]
push eax
call fcn.10054b70
test al, al
jne 0x10040a0c
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.1000a8e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000a8e0
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.100ba074
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x38]
call fcn.10002b60
lea edx, [eax + 4]
call fcn.10002b60
mov ecx, dword [edx]
xor edx, edx
sub ecx, dword [eax]
mov eax, ecx
mov ecx, 0x3e8
div ecx
mov esi, eax
mov dword [ebp - 0xcc], esi
test edx, edx
jne 0x100409ce
test esi, esi
je 0x10040db9
xorps xmm0, xmm0
mov dword [ebp - 0x18], edx
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, eax
call fcn.100415e0
lea ecx, [ebp - 0x38]
call fcn.10002b60
mov ecx, dword [eax]
imul eax, esi, 0x3e8
push eax
push ecx
push dword [ebp - 0x20]
call fcn.100bc200
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10040af6
xor esi, esi
cmp dword [ebx + esi], 0x23ab45db
jne 0x10040b45
inc dword [ebp - 0x14]
xor eax, eax
mov word [ebx + esi + 0x282], ax
mov word [ebx + esi + 0x382], ax
mov word [ebx + esi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add esi, 0x3e8
mov ebx, dword [ebp - 0x20]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x10040aa2
mov esi, dword [ebp - 0xcc]
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 0x10040bc3
mov dword [ebp - 0x14], 0x2762762
call fcn.100028f0
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10002e00
add esp, 8
mov eax, dword [eax]
cmp esi, eax
ja 0x10040ddb
jmp 0x10040bbb
mov ecx, dword [ebp - 0xc8]
mov byte [ecx], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100409d1
mov ecx, dword [ebp - 0x18]
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 0x10040b97
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040de0
push ecx
push esi
call fcn.100ba418
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x100409d1
push esi
mov ecx, edi
call fcn.10041370
lea ecx, [ebp - 0xa0]
call fcn.1003ed70
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
mov dword [ebp - 0x14], esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10040d26
xor eax, eax
mov dword [ebp - 0xcc], eax
nop
add eax, 4
add esi, eax
push esi
call fcn.10002dd0
add esp, 4
lea ecx, [ebp - 0xa0]
push eax
push esi
call fcn.10002bd0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xcc]
add ecx, 0x284
add esi, ecx
push esi
call fcn.10002dd0
add esp, 4
lea ecx, [ebp - 0x88]
push eax
push esi
call fcn.10002bd0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xcc]
mov eax, dword [ecx + edx + 0x3cc]
lea esi, [edx + 0x384]
mov dword [ebp - 0x58], eax
add esi, ecx
mov eax, dword [ecx + edx + 0x3d0]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + edx + 0x3d4]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + edx + 0x3d8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + edx + 0x3dc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + edx + 0x3e0]
push esi
mov dword [ebp - 0x44], eax
call fcn.10002dd0
add esp, 4
lea ecx, [ebp - 0x70]
push eax
push esi
call fcn.10002bd0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xcc]
mov eax, dword [ecx + esi + 0x3e4]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov byte [ebp - 0x3c], 0
cmp dword [edi + 8], eax
je 0x10040ce0
push eax
push 0x68
call fcn.100028b0
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.1003f720
add dword [edi + 4], 0x68
jmp 0x10040cef
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, edi
call fcn.100419b0
mov ecx, dword [ebp - 0x1c]
add esi, 0x3e8
mov dword [ebp - 0xcc], esi
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x20]
inc ebx
sub ecx, esi
mov dword [ebp - 0x14], esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov eax, dword [ebp - 0xcc]
jb 0x10040c00
mov ecx, dword [ebp - 0xc8]
mov byte [ecx], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.10002b50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.10002b50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.10002b50
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10040db9
mov ecx, dword [ebp - 0x18]
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 0x10040d9a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040de5
push ecx
push esi
call fcn.100ba418
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.1000a8e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000a8e0
mov al, 1
jmp 0x100409ee
call fcn.1000c990
call fcn.100bf730
call fcn.100bf730
int3