Function at 0x4c55e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565e99
mov eax, dword fs:[0]
push eax
mov eax, 0x1110
call fcn.005563f0
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x1090], eax
mov eax, dword [esi]
sub eax, 0x10
call fcn.00423cf0
xor ebx, ebx
add eax, 0x10
mov dword [ebp - 0x1064], eax
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1060], eax
cmp eax, 0xffffffff
je 0x4c59d2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x1064]
call fcn.004c5b90
mov eax, dword [ebp - 0x1060]
cmp eax, ebx
je 0x4c5697
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x58], ebx
lea ecx, [ebp - 0x106c]
push ecx
push 4
lea edx, [ebp - 0x1068]
push edx
lea ecx, [ebp - 0x1064]
mov dword [ebp - 0x106c], ebx
mov dword [ebp - 0x1068], ebx
call fcn.004c4df0
mov esi, dword [esi]
push esi
mov dword [ebp - 0x106c], 0x14
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c56d4
sub eax, edx
xor ecx, ecx
sar eax, 1
cmp eax, 0xe
sete cl
mov edi, ecx
mov dword [ebp - 0x1094], edi
cmp edi, ebx
jne 0x4c56fe
sub dword [ebp - 0x106c], 4
cmp dword [ebp - 0x1068], ebx
jbe 0x4c5972
lea ebx, [ebx]
mov eax, dword [ebp - 0x106c]
dec dword [ebp - 0x1068]
lea edx, [ebp - 0x1070]
push edx
push eax
mov dword [ebp - 0x1070], eax
lea eax, [ebp - 0x108c]
push eax
lea ecx, [ebp - 0x1064]
call fcn.004c4df0
mov esi, eax
mov eax, dword [ebp - 0x1060]
cmp eax, ebx
je 0x4c5752
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x4c5754
xor eax, eax
cmp esi, ebx
je 0x4c5978
cmp dword [ebp - 0x1070], ebx
jbe 0x4c5978
cmp dword [ebp - 0x1084], eax
jae 0x4c5978
movzx ecx, word [ebp - 0x1080]
cmp ecx, eax
jae 0x4c5978
movzx edx, word [ebp - 0x107e]
cmp edx, eax
jae 0x4c5978
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1088]
mov ecx, dword [ebp - 0x108c]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x1078], eax
push edx
lea eax, [ebp - 0x1078]
push eax
mov dword [ebp - 0x1074], ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [ebp - 0x1084]
lea ecx, [ebp - 0x1064]
push ecx
push edx
lea esi, [ebp - 0x38]
call fcn.004c5b00
movzx ecx, word [ebp - 0x1080]
lea eax, [ebp - 0x1064]
push eax
push ecx
lea esi, [ebp - 0x34]
call fcn.004c5b00
movzx eax, word [ebp - 0x107e]
lea edx, [ebp - 0x1064]
push edx
push eax
lea esi, [ebp - 0x30]
call fcn.004c5b00
add esp, 0x18
cmp edi, ebx
je 0x4c58bb
cmp dword [ebp - 0x107c], ebx
je 0x4c58bb
mov eax, dword [ebp - 0x1060]
cmp eax, ebx
je 0x4c5968
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x107c]
cmp ecx, eax
jae 0x4c5968
push ecx
mov dword [ebp - 0x1098], ebx
call fcn.0053a94b
mov edx, dword [ebp - 0x107c]
add esp, 4
lea ecx, [ebp - 0x1098]
push ecx
mov esi, eax
push edx
push esi
lea ecx, [ebp - 0x1064]
call fcn.004c4df0
push esi
call fcn.0053d6b6
add esp, 4
sub esp, 0x34
mov eax, esp
mov dword [ebp - 0x1070], esp
push eax
lea edi, [ebp - 0x48]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004c5a30
mov ecx, dword [ebp - 0x1074]
mov edx, dword [ebp - 0x1078]
push ecx
push edx
lea eax, [ebp - 0x111c]
push eax
call fcn.004cbc20
add esp, 0x40
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov dword [ebp - 0x10d4], ecx
mov edx, dword [eax + 4]
lea edi, [eax + 8]
lea eax, [ebp - 0x10cc]
push eax
mov dword [ebp - 0x10d0], edx
call fcn.004c5a30
mov eax, dword [ebp - 0x1090]
lea ecx, [ebp - 0x10d4]
push ecx
lea edx, [ebp - 0x10e0]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.004c8820
lea esi, [ebp - 0x10cc]
call fcn.004c4f40
lea esi, [ebp - 0x1114]
call fcn.004c4f40
lea esi, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004c4f40
cmp dword [ebp - 0x1068], ebx
jbe 0x4c5972
mov edi, dword [ebp - 0x1094]
jmp 0x4c5710
lea esi, [ebp - 0x48]
call fcn.004c4f40
jmp 0x4c5978
dec dword [ebp - 0x1068]
mov ecx, dword [ebp - 0x1060]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, dword [ebp - 0x1064]
add eax, 0xfffffff0
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c59cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4c5a11
push 0xffffffffffffffff
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1064]
add eax, 0xfffffff0
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5a0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret