Function at 0x4cb320
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573f7c
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xf0]
mov ecx, dword [ecx + 0x2e0]
call fcn.004cbb50
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xf8]
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041a130
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [ebp - 0x50]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cb3f1
push 0x5880d4
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 0x310]
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx + 0x310]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044fc20
jmp 0x4cb641
push 0
push 0x80
push 3
push 0
push 1
push bind
lea ecx, [ebp - 0x50]
call fcn.004dfdf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4cb42f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044fc20
jmp 0x4cb641
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0
jne 0x4cb470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044fc20
jmp 0x4cb641
fild qword [ebp - 0x44]
fdiv qword [0x582758]
fstp qword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
mov eax, dword [0x5fbf48]
mov ecx, dword [eax + 0x500]
mov edx, dword [0x5fbf48]
mov eax, dword [edx + 0x500]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x84]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.004a6180
test eax, eax
jne 0x4cb4d3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00438220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044fc20
jmp 0x4cb641
lea ecx, [ebp - 0x48]
call fcn.00438030
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004368a0
jmp 0x4cb50e
push 0
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x58]
call fcn.004cc4d0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00497a70
push eax
lea ecx, [ebp - 0x58]
call fcn.0044ff40
movzx edx, al
test edx, edx
je 0x4cb56e
lea ecx, [ebp - 0x58]
call fcn.00475490
push eax
lea ecx, [ebp - 0x48]
call fcn.00438070
lea ecx, [ebp - 0x50]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x48]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.0053ca9c
add esp, 8
test eax, eax
jne 0x4cb56c
jmp 0x4cb56e
jmp 0x4cb4f4
lea ecx, [ebp - 0x4c]
call fcn.00438030
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xf0]
call fcn.004ca4e0
call fcn.00541470
push eax
lea ecx, [ebp - 0x34]
call fcn.004a6180
push eax
mov eax, dword [ebp - 0x10]
push eax
sub esp, 8
fld qword [ebp - 0x1c]
fstp qword [esp]
mov ecx, dword [ebp - 0xf0]
mov ecx, dword [ecx + 0x2e0]
call fcn.004cc130
push eax
mov edx, dword [ebp - 0xf0]
mov ecx, dword [edx + 0x2e0]
call fcn.004cc100
push eax
lea ecx, [ebp - 0x50]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str._s___dx_d
lea eax, [ebp - 0x4c]
push eax
call fcn.004386c0
add esp, 0x28
lea ecx, [ebp - 0x4c]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx + 0x310]
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 0x310]
mov edx, dword [edx]
mov eax, dword [edx + 0x2c]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0044fc20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.0044fc20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00438220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044fc20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret