Function at 0x45a060
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8515
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x522104]
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 ebx, ecx
mov dword [ebp - 0x2c], ebx
xorps xmm0, xmm0
lea esi, [ebx + 0x44]
push esi
movlpd qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x45a0ad
lock inc dword [ecx + 4]
mov edi, dword [ebx + 0x5c]
mov ebx, dword [ebx + 0x60]
push esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
test edi, edi
je 0x45a0cf
mov eax, dword [edi]
jmp 0x45a0d2
or eax, 0xffffffff
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45a24b
mov ecx, dword [ebp - 0x2c]
movq xmm0, qword [ecx + 0x80]
movq qword [ebp - 0x38], xmm0
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
or edi, 0xffffffff
cmp dword [ebp - 0x14], eax
jl 0x45a1f9
jg 0x45a112
cmp dword [ebp - 0x18], ecx
jb 0x45a1f9
push esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x45a12e
mov eax, dword [eax]
jmp 0x45a131
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45a26d
mov edx, dword [ebp - 0x2c]
movq xmm0, qword [edx + 0x80]
movq qword [ebp - 0x18], xmm0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], eax
jl 0x45a1f2
jg 0x45a16e
cmp dword [ebp - 0x20], ecx
jb 0x45a1f2
mov eax, dword [edx + 0x5c]
test eax, eax
je 0x45a179
mov ecx, dword [eax]
jmp 0x45a17c
or ecx, 0xffffffff
add edx, 0x64
call fcn.00459350
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x78], 8
lea eax, [ecx + 0x64]
jb 0x45a192
mov eax, dword [eax]
push 0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00459a90
mov ecx, dword [ebp - 0x2c]
push eax
lea ecx, [ecx + 0x5c]
call fcn.00456d80
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x45a1f2
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x45a1f2
mov eax, dword [ecx]
mov edi, dword [eax]
mov ecx, edi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x2c]
call edi
mov ecx, dword [ebp - 0x2c]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x45a1f2
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x2c]
call edi
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x45a22f
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x45a22f
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, ebx
call esi
lock xadd dword [ebx + 8], edi
dec edi
jne 0x45a22f
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, ebx
call esi
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.004a4c5b
mov esp, ebp
pop ebp
ret
push str.Unable_to_get_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004924d0
push 0x51f1f8
lea eax, [ebp - 0x4c]
push eax
call fcn.004a765b
push str.Unable_to_get_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004924d0
push 0x51f1f8
lea eax, [ebp - 0x4c]
push eax
call fcn.004a765b
int3