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

Disassembly:
push 0xffffffffffffffff
push 0x5a1b00
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
lea edi, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.00474ab0
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x45f753
lea eax, [ecx - 0x10]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f94b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45f94b
jle 0x45f781
lea edx, [eax - 1]
test edx, edx
jl 0x45f96c
cmp edx, eax
jg 0x45f96c
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x45f781
push 0x5c
lea edi, [esp + 0x24]
call fcn.00404400
mov ecx, dword [esp + 0x20]
lea ebp, [ecx - 0x10]
mov eax, ebp
mov dword [esp + 0x24], ebp
call fcn.00403ce0
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x10
push str.QQPinyinUser.dat
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x70], 1
call fcn.00403fc0
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x34], ebx
je 0x45f904
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x45f8fd
push esi
call fcn.0057740a
add esp, 4
push esi
mov edi, eax
push 0
push edi
mov dword [esp + 0x3c], edi
call fcn.00580260
add esp, 0xc
test edi, edi
je 0x45f8fd
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push edi
push ebx
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45f8f4
lea esi, [esi + esi + 0x80]
push esi
mov dword [esp + 0x1c], esi
call fcn.0057740a
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x45f8f0
push esi
push 0
push ebp
call fcn.00580260
add esp, 0xc
call fcn.004021f0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
mov ecx, ebp
mov edx, edi
call fcn.00401f50
add esp, 0xc
test eax, eax
je 0x45f8e7
mov ecx, dword [esp + 0x18]
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
je 0x45f8e7
mov ebx, dword [esp + 0x38]
add ebx, 0x174
mov dword [esp + 0x18], ecx
mov ecx, 7
mov esi, ebp
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
call fcn.00460c80
mov ecx, ebx
mov edi, eax
call fcn.00460cc0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
add ebp, 0x1c
sub dword [esp + 0x18], 1
mov dword [eax], edi
jne 0x45f8a1
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push ebp
call fcn.0057832c
add esp, 4
mov ebp, dword [esp + 0x24]
push edi
call fcn.0057832c
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45f929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x64], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f94b
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005787fd
add esp, 0x54
ret 4
push 0x80070057
call fcn.00404550
int3