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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x608554]
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, dword [ebp + 8]
push ecx
push str.OperateFile::GetFileSize
lea ecx, [ebp - 0x48]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46f97a
test byte [ecx + 0x1c], 1
je 0x46f939
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x88
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x46f97a
test byte [ecx + 0x1c], 1
je 0x46f97a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x89
call fcn.004018a0
mov ecx, dword [0x608f30]
add esp, 0x10
xor edi, edi
test ebx, ebx
jne 0x46f9cc
mov byte [ebp - 0x44], 1
cmp ecx, 0x608f30
je 0x46fa1d
test byte [ecx + 0x1c], 1
je 0x46fa1d
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8a
call fcn.004018a0
add esp, 0x10
jmp 0x46fb3d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46fa24
mov byte [ebp - 0x44], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46fa1d
test byte [ecx + 0x1c], 1
je 0x46fa1d
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8b
call fcn.004018a0
add esp, 0x10
xor edi, edi
jmp 0x46fb3d
push 0
push 0x20
push 3
push 0
push 0
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x46faa9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46fa9e
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x46fa9e
test byte [eax + 0x1c], 2
je 0x46fa9e
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x48]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5cecd4
push esi
mov ecx, 0x8c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46faf7
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46fafd
test byte [ecx + 0x1c], 2
je 0x46fafd
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x48]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5cecd4
push esi
mov ecx, 0x8d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
mov ecx, dword [0x608f30]
mov byte [ebp - 0x44], 1
cmp ecx, 0x608f30
je 0x46fb3d
test byte [ecx + 0x1c], 1
je 0x46fb3d
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push ebx
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8e
call fcn.004300c0
add esp, 0x14
lea ecx, [ebp - 0x48]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret 4