Function at 0x471540
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x691c1c
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x100]
mov eax, dword [esp + 0x104]
mov ebx, dword [esp + 0xfc]
mov dword [esp + 0x40], ebp
mov edi, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x28], eax
cmp esi, edi
je 0x4715b0
mov ecx, esi
call fcn.00470150
add esi, 0x68
cmp esi, edi
jne 0x4715a2
mov eax, dword [ebp]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x28]
mov byte [eax], 0
cmp dword [ebx + 0x14], 8
jb 0x4715c7
mov ecx, dword [ebx]
jmp 0x4715c9
mov ecx, ebx
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, SysReAllocString
call fcn.0041ffd0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x471709
test edi, edi
je 0x471709
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movq qword [esp + 0x1c], xmm0
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xf4], esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
movlpd qword [esp + 0x58], xmm0
push eax
lea eax, [esp + 0x5c]
movlpd qword [esp + 0x34], xmm0
push eax
push ebx
movlpd qword [esp + 0x54], xmm0
call fcn.00471cc0
test al, al
je 0x4716ce
mov ebx, dword [esp + 0x54]
mov ecx, ebx
mov ebp, dword [esp + 0x58]
add ecx, 0xffffffff
mov eax, ebp
adc eax, 0xffffffff
test eax, eax
ja 0x4716ca
jb 0x471674
cmp ecx, 0x4ffffe
ja 0x4716ca
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.0042c290
push 0
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
push ebx
push dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x54]
xor ecx, ecx
cmp ecx, ebp
ja 0x4716c6
jb 0x4716b3
cmp eax, ebx
jae 0x4716c6
mov byte [esp + 0x1b], cl
lea ecx, [esp + 0x1b]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0042c290
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, esi
jne 0x471735
mov dword [esp + 0xf4], 0xffffffff
test ebp, ebp
je 0x471709
push ebp
call fcn.005472b4
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
xor al, al
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005472b9
add esp, 0xe4
ret 0xc
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0xf4], 1
lea ecx, [esp + 0xc4]
call fcn.00491fc0
lea eax, [esp + 0x2c]
sub esi, ebp
push eax
push esi
push ebp
call fcn.0046d840
test al, al
jne 0x4717b5
mov eax, dword [esp + 0x28]
mov byte [eax], 1
mov byte [esp + 0xf4], 0
lea ecx, [esp + 0x2c]
call fcn.0041db30
mov dword [esp + 0xf4], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041db30
jmp 0x471709
mov eax, dword [esp + 0x30]
xor edx, edx
mov ebx, dword [esp + 0x2c]
mov ecx, 0x3e8
sub eax, ebx
div ecx
mov edi, eax
test edx, edx
jne 0x471784
test edi, edi
jne 0x4717fd
mov byte [esp + 0xf4], dl
lea ecx, [esp + 0x2c]
call fcn.0041db30
mov dword [esp + 0xf4], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041db30
mov al, 1
jmp 0x47170b
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0xf4], 2
lea ecx, [esp + 0x44]
push edi
call fcn.004720d0
imul eax, edi, 0x3e8
push eax
push ebx
mov ebx, dword [esp + 0x4c]
push ebx
call fcn.00549620
mov ecx, dword [esp + 0x54]
mov eax, 0x10624dd3
sub ecx, ebx
add esp, 0xc
imul ecx
xor esi, esi
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x471897
mov eax, dword [esp + 0x44]
add eax, 0x382
cmp dword [eax - 0x382], 0x23ab45db
jne 0x4718e4
xor ecx, ecx
inc esi
mov word [eax - 0x100], cx
mov word [eax], cx
mov word [eax + 0x48], cx
add eax, 0x3e8
cmp esi, ebx
jb 0x471871
mov ecx, dword [esp + 0x40]
push edi
call fcn.00471f00
lea ecx, [esp + 0x5c]
call fcn.0046f7f0
mov byte [esp + 0xf4], 3
test ebx, ebx
je 0x4719ff
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
add esi, 0x284
jmp 0x4718d0
cmp word [esi - 0x280], 0
lea edx, [esi - 0x280]
jne 0x471901
xor ecx, ecx
jmp 0x471915
mov eax, dword [esp + 0x28]
mov byte [eax], 1
mov byte [esp + 0xf4], 1
lea ecx, [esp + 0x44]
call fcn.0041db30
jmp 0x47178b
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471906
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x64]
call fcn.00409260
cmp word [esi], 0
jne 0x47192a
xor ecx, ecx
jmp 0x47193f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471930
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x7c]
call fcn.00409260
mov eax, dword [esi + 0x148]
lea edx, [esi + 0x100]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x14c]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x150]
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0x154]
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 0x158]
mov dword [esp + 0xb4], eax
mov eax, dword [esi + 0x15c]
mov dword [esp + 0xb8], eax
cmp word [edx], 0
jne 0x4719a8
xor ecx, ecx
jmp 0x4719bf
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4719b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.00409260
mov eax, dword [esi + 0x160]
mov ecx, ebp
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xc4], 0
call fcn.00471f40
add esi, 0x3e8
dec ebx
jne 0x4718d0
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov byte [eax], 0
mov byte [esp + 0xf4], 2
lea ecx, [esp + 0x5c]
call fcn.00470150
mov byte [esp + 0xf4], 1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x471a48
push eax
call fcn.005472b4
add esp, 4
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0xf4], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x471a79
push eax
call fcn.005472b4
add esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0xf4], 0xffffffff
test ebp, ebp
je 0x471aa9
push ebp
call fcn.005472b4
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov al, 1
jmp 0x47170b