Function at 0x45e340
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9ec4
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [ebp + 8]
mov byte [edi + 8], 0
call dword [eax]
push 4
mov dword [ebp - 0x14], 0
call fcn.004c4317
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
sub esp, 0xc
lea ecx, [ebp - 0x14]
push esi
call fcn.0045f830
test al, al
jne 0x45e455
lea ecx, [ebp - 0x34]
call fcn.00462a20
mov byte [ebp - 4], 2
mov edi, dword [edi + 4]
test edi, edi
je 0x45e3f7
mov eax, dword [edi]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
mov esi, dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.0044de10
mov byte [ebp - 4], 3
push 0
mov byte [ebp - 4], 2
mov ecx, edi
call esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x45e435
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45e42b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e821
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
jmp 0x45e7c9
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x45e70e
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45e70e
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x58], eax
cmp eax, 0xffffffff
jne 0x45e48f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45e70e
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x54], ecx
adc edx, 0
or eax, edx
mov dword [ebp - 0x5c], edx
je 0x45e70e
xorps xmm0, xmm0
mov byte [ebp - 0x4d], 1
push 0x10000
mov dword [ebp - 0x18], 0
movlpd qword [ebp - 0x64], xmm0
call fcn.004c4b2b
mov ecx, dword [ebp - 0x60]
add esp, 4
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x60], ecx
nop dword [eax + eax]
cmp dword [esi], 0xffffffff
je 0x45e624
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 0x10000
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45e624
cmp byte [edi + 8], 0
jne 0x45e585
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x45e621
mov eax, dword [edi]
push ecx
push dword [ebp - 0x1c]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edi + 4]
adc ecx, 0
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], ecx
test eax, eax
je 0x45e573
mov esi, dword [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x60]
call fcn.004c4d00
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
movsd qword [ebp - 0x70], xmm0
call fcn.004c4d00
movsd xmm1, qword [ebp - 0x70]
sub esp, 8
divsd xmm1, xmm0
mov ecx, dword [edi + 4]
movsd qword [esp], xmm1
call dword [esi]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
jmp 0x45e4e0
mov byte [ebp - 4], 0xd
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0xb
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x4c]
push eax
push 0
mov ecx, edi
call fcn.0045e830
mov byte [ebp - 0x4d], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x45e609
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45e5ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e826
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45e63c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45e63c
mov dword [esi], 0xffffffff
push dword [ebp - 0x1c]
call fcn.004c4b26
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0x13
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0x11
mov ecx, 7
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 0x14
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45e6b6
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov edi, dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.0044de10
mov byte [ebp - 4], 0x15
push 1
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x54]
call edi
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0x16
cmp ecx, 7
jbe 0x45e6f1
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45e6e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e826
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 1
jmp 0x45e7cc
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 5
mov ecx, 7
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 8
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45e776
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov edi, dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.0044de10
mov byte [ebp - 4], 9
push 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x54]
call edi
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xa
cmp ecx, 7
jbe 0x45e7b1
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45e7a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e826
push ecx
push edx
call fcn.004c46ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 1
mov byte [ebp - 0x4d], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45e801
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45e7ef
test eax, eax
je 0x45e7ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004c46ad
add esp, 8
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4309
mov esp, ebp
pop ebp
ret 4
call fcn.004d91aa
call fcn.004d91aa
int3