Function at 0x477000
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48fef5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [esp + 0xb4]
mov byte [edi + 8], 0
call dword [eax]
push 4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0xac], 0
test eax, eax
je 0x477078
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x47707a
xor eax, eax
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0xac], 1
lea ecx, [esp + 0x4c]
push 0x80
push 3
sub esp, 8
push esi
call fcn.0041f3a0
test al, al
jne 0x477163
lea ecx, [esp + 0x84]
call fcn.00478cc0
mov byte [esp + 0xac], 2
cmp dword [edi + 4], 0
je 0x477110
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0xa4]
push eax
call fcn.004030c0
mov byte [esp + 0xc4], 3
mov ecx, dword [edi + 4]
push 0
mov eax, dword [ecx]
mov byte [esp + 0xc8], 2
call dword [eax + 4]
mov byte [esp + 0xac], 1
cmp dword [esp + 0x98], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x477134
push dword [esp + 0x84]
call ebx
add esp, 4
mov esi, dword [esp + 0x4c]
xor eax, eax
mov word [esp + 0x84], ax
xor al, al
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov byte [esp + 0x17], al
jmp 0x47740f
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x50]
movlpd qword [esp + 0x20], xmm0
call fcn.0041f510
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
jne 0x477203
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov byte [esp + 0xac], 4
lea eax, [esp + 0x6c]
push eax
push 0
mov ecx, edi
call fcn.00477480
mov byte [esp + 0xac], 1
cmp dword [esp + 0x80], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4771da
push dword [esp + 0x6c]
call ebx
add esp, 4
mov esi, dword [esp + 0x4c]
xor eax, eax
mov word [esp + 0x6c], ax
xor al, al
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov byte [esp + 0x17], al
jmp 0x47740f
xorps xmm0, xmm0
mov byte [esp + 0x17], 1
push 0x10000
mov dword [esp + 0x54], 0
movlpd qword [esp + 0x28], xmm0
call fcn.0047fefc
mov ebp, eax
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
jmp 0x477240
mov esi, dword [esp + 0x4c]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test esi, esi
je 0x47738e
test ebp, ebp
je 0x477376
cmp dword [esi], 0xffffffff
je 0x47738e
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0
push eax
push 0x10000
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477376
cmp byte [edi + 8], 0
jne 0x477300
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x477372
mov eax, dword [edi]
push ecx
push ebp
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
mov ebx, dword [edi + 4]
adc eax, 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4772f3
mov esi, dword [ebx]
mov edx, eax
call fcn.0048135e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
movsd qword [esp + 0x44], xmm0
call fcn.0048135e
movsd xmm1, qword [esp + 0x44]
sub esp, 8
divsd xmm1, xmm0
mov ecx, ebx
movsd qword [esp], xmm1
call dword [esi]
mov dword [esp + 0x50], 0
jmp 0x477240
xor eax, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0xac], 5
lea eax, [esp + 0x54]
push eax
push 0
mov ecx, edi
call fcn.00477480
xor al, al
mov byte [esp + 0x17], al
mov byte [esp + 0xac], 1
cmp dword [esp + 0x68], 8
jb 0x47735b
push dword [esp + 0x54]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov esi, dword [esp + 0x4c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47738e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47738e
mov dword [esi], 0xffffffff
push ebp
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 8]
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0xac], 6
lea eax, [esp + 0x2c]
push eax
push 1
mov ecx, edi
call fcn.00477480
mov byte [esp + 0xac], 1
cmp dword [esp + 0x40], 8
jb 0x4773f4
push dword [esp + 0x2c]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov word [esp + 0x2c], ax
mov al, byte [esp + 0x17]
mov dword [esp + 0x3c], 0
mov dword [esp + 0xac], 0xffffffff
test esi, esi
je 0x477448
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x477436
test ecx, ecx
je 0x477436
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call ebx
mov al, byte [esp + 0x1b]
add esp, 4
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0047ff74
add esp, 0x9c
ret 4