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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c09a
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5c2b80]
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 esi, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], edi
mov dword [edi], 0
call fcn.00456bd0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x45f8e5
push 0x80004005
call fcn.00456ea0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 1
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x45f9ab
mov eax, 0x5911c0
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x45f936
test dx, dx
je 0x45f932
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x45f936
add ecx, 4
add eax, 4
test dx, dx
jne 0x45f910
xor eax, eax
jmp 0x45f93b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x45f9ab
lea ecx, [ebp - 0x38]
call fcn.004f9760
mov dword [ebp - 4], 2
mov dword [ebp - 0x40], 3
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x45f971
push 0x80004005
call fcn.00456ea0
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45f999
test dx, dx
je 0x45f995
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45f999
add eax, 4
add ecx, 4
test dx, dx
jne 0x45f973
xor eax, eax
jmp 0x45f99e
sbb eax, eax
or eax, 1
test eax, eax
mov byte [ebp - 0x2d], 0
sete al
test al, al
je 0x45f9af
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov eax, dword [ebp - 0x40]
test al, 2
je 0x45f9e9
and eax, 0xfffffffd
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45f9e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x2d], 0
je 0x45fa79
lea ecx, [ebp - 0x34]
call fcn.004f9760
mov dword [ebp - 4], 4
mov edx, dword [eax]
mov esi, dword [edi]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x45fa4f
cmp dword [esi + 0xc], 0
jl 0x45fa44
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x45fa44
call fcn.00456280
mov dword [ebp - 0x38], eax
lea ecx, [esi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45fa3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [edi], eax
jmp 0x45fa4f
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004573c0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45fd2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45fd2c
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x45faf9
lea ecx, [ebp - 0x34]
call fcn.004f9760
mov dword [ebp - 4], 6
mov edx, dword [eax]
mov esi, dword [edi]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x45faf4
cmp dword [esi + 0xc], 0
jl 0x45fae9
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x45fae9
call fcn.00456280
mov dword [ebp - 0x38], eax
lea ecx, [esi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45fadf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [edi], eax
jmp 0x45faf4
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004573c0
jmp 0x45fa4f
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
push ecx
push eax
movq qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x45fb51
lea ecx, [ebp - 0x34]
call fcn.004f9760
mov dword [ebp - 4], 8
mov ecx, edi
push eax
call fcn.0045be70
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45fd23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45fd23
cmp dword [ebp - 0x24], 0
je 0x45fb70
lea ecx, [ebp - 0x34]
call fcn.004f9760
mov dword [ebp - 4], 0xa
mov ecx, edi
push eax
call fcn.0045be70
jmp 0x45fb27
cmp dword [ebp - 0x28], 0
je 0x45fd23
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x28]
call fcn.00460200
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45fcfd
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x2d], 0
push eax
lea eax, [ebp - 0x2e]
mov byte [ebp - 0x2e], 0
push eax
lea edx, [ebp - 0x2d]
mov dword [ebp - 0x3c], 0
mov ecx, esi
call fcn.00457df0
mov eax, dword [ebp - 0x3c]
add esp, 8
test eax, eax
jle 0x45fc13
add eax, esi
lea ecx, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.004602a0
mov esi, dword [ebp - 0x1c]
cmp byte [ebp - 0x2e], 0
mov edi, dword [ebp - 0x18]
je 0x45fc36
mov ecx, esi
cmp esi, edi
je 0x45fc36
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [ecx], bl
add ecx, 2
cmp ecx, edi
jne 0x45fc22
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x45fc6b
inc edi
lea ecx, [ebp - 0x1c]
push edi
call fcn.00460200
cmp byte [ebp - 0x2d], 0
mov esi, dword [ebp - 0x1c]
mov byte [esi + edi - 1], 0
je 0x45fcbe
inc edi
lea ecx, [ebp - 0x1c]
push edi
call fcn.00460200
mov esi, dword [ebp - 0x1c]
mov byte [esi + edi - 1], 0
jmp 0x45fc86
cmp byte [ebp - 0x2d], 0
je 0x45fcbe
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00460200
mov esi, dword [ebp - 0x1c]
mov word [esi + edi], 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.00457210
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x34]
mov ecx, edi
push eax
call fcn.0045be70
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45fcfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45fcfd
push esi
lea ecx, [ebp - 0x3c]
call fcn.00460100
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x34]
mov ecx, edi
push eax
call fcn.0045be70
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45fcf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, edi
mov ecx, edi
call fcn.00457b90
mov byte [ebp - 4], 0
test esi, esi
je 0x45fd23
push esi
call fcn.0047c370
mov dword [ebp - 0x14], 0
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.0052ab62
mov esp, ebp
pop ebp
ret