Function at 0x4470c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7411
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x53f00c]
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.00448520
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.00408da0
mov edx, 0x80000000
mov ecx, eax
call fcn.00438fc0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x4472b5
test esi, esi
je 0x4472b5
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.00416f92
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.00447870
test al, al
je 0x44723a
mov ebx, dword [ebp - 0xd0]
mov ecx, ebx
mov eax, dword [ebp - 0xcc]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x447234
jb 0x4471d0
cmp ecx, 0x4ffffe
ja 0x447234
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
call fcn.00417015
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
call fcn.00409460
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 0x447234
jb 0x44721b
cmp eax, ebx
jae 0x447234
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.00417015
mov ebx, dword [ebp - 0xc8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.00410240
test al, al
jne 0x4472a6
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.00416f92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.004558c0
lea ecx, [ebp - 0x2c]
call fcn.00409460
mov edx, dword [eax]
lea eax, [ebp - 0x38]
push eax
call fcn.00416f63
push eax
push edx
lea ecx, [ebp - 0xc0]
call fcn.00455af0
test al, al
jne 0x4472d5
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00416f8d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416f8d
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.004c9ebd
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x38]
call fcn.00416f63
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x447297
lea ecx, [ebp - 0x38]
call fcn.00416f63
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov dword [ebp - 0xcc], esi
test esi, esi
je 0x447699
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, eax
call fcn.00447f50
lea ecx, [ebp - 0x38]
call fcn.00409460
mov ecx, dword [eax]
imul eax, esi, 0x3e8
push eax
push ecx
push dword [ebp - 0x20]
call fcn.004cc710
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 0x4473d5
xor esi, esi
cmp dword [ebx + esi], 0x23ab45db
jne 0x447424
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 0x447381
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 0x4474a2
mov dword [ebp - 0x14], 0x2762762
call fcn.00402440
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a250
add esp, 8
mov eax, dword [eax]
cmp esi, eax
ja 0x4476bb
jmp 0x44749a
mov ecx, dword [ebp - 0xc8]
mov byte [ecx], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x44729a
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 0x447476
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4476c0
push ecx
push esi
call fcn.004c9ffc
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x44729a
push esi
mov ecx, edi
call fcn.00447ce0
lea ecx, [ebp - 0xa0]
call fcn.004455d0
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 0x447606
xor eax, eax
mov dword [ebp - 0xcc], eax
nop dword [eax]
add eax, 4
add esi, eax
push esi
call fcn.00409e30
add esp, 4
lea ecx, [ebp - 0xa0]
push eax
push esi
call fcn.00409680
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xcc]
add ecx, 0x284
add esi, ecx
push esi
call fcn.00409e30
add esp, 4
lea ecx, [ebp - 0x88]
push eax
push esi
call fcn.00409680
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.00409e30
add esp, 4
lea ecx, [ebp - 0x70]
push eax
push esi
call fcn.00409680
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 0x4475c0
push eax
push 0x68
call fcn.00402430
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.00446080
add dword [edi + 4], 0x68
jmp 0x4475cf
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, edi
call fcn.00448320
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 0x4474e0
mov ecx, dword [ebp - 0xc8]
mov byte [ecx], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00408e60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00408e60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.00408e60
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x447699
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 0x44767a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4476c5
push ecx
push esi
call fcn.004c9ffc
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.00416f8d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416f8d
mov al, 1
jmp 0x4472b7
call fcn.00409bb0
call fcn.004cfb29
call fcn.004cfb29
int3