Function at 0x45f980
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59f280
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x17c]
test eax, eax
jbe 0x45fbc7
cmp eax, 0xa
jae 0x45f9c4
mov dword [esp + 0x14], eax
jmp 0x45f9d0
mov dword [esp + 0x14], 0xa
mov eax, dword [esp + 0x14]
lea edi, [eax*8]
sub edi, eax
add edi, edi
add edi, edi
push edi
mov dword [esp + 0x28], edi
call fcn.0057740a
lea ebp, [edi + edi + 0x80]
add esp, 4
mov esi, eax
push ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], ebp
call fcn.0057740a
add esp, 4
test esi, esi
mov ebx, eax
mov dword [esp + 0x20], ebx
je 0x45fbc7
test ebx, ebx
je 0x45fbc7
push edi
push 0
push esi
call fcn.00580260
add esp, 0xc
push ebp
push 0
push ebx
call fcn.00580260
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + 0x178]
mov ebp, dword [eax]
add esp, 0xc
add ebx, 0x174
mov dword [esp + 0x18], 0
mov dword [esp + 0x44], esi
cmp ebx, ebx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], ecx
je 0x45fa60
call fcn.00578ff3
cmp ebp, dword [esp + 0x30]
je 0x45fab1
cmp ebp, dword [ebx + 4]
jne 0x45fa70
call fcn.00578ff3
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
lea esi, [ebp + 8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
jae 0x45faa9
add dword [esp + 0x18], 1
add dword [esp + 0x44], 0x1c
cmp ebp, dword [ebx + 4]
jne 0x45fa9c
call fcn.00578ff3
mov ebp, dword [ebp]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
jmp 0x45fa50
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
call fcn.004021f0
mov edx, dword [esp + 0x20]
push eax
push edi
push esi
lea ecx, [esp + 0x28]
call fcn.00401c40
add esp, 0xc
cmp dword [esp + 0x1c], 0
jbe 0x45fbb1
lea edi, [esp + 0x44]
call fcn.00474ab0
mov dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x45fb8d
mov eax, edi
call fcn.0047aca0
mov ebx, dword [esp + 0x44]
lea eax, [ebx - 0x10]
call fcn.00403ce0
add eax, 0x10
mov dword [esp + 0x28], eax
mov edx, str.QQPinyinUser.dat
lea edi, [esp + 0x28]
mov byte [esp + 0x3c], 1
call fcn.00412930
mov ebp, dword [esp + 0x28]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45fb6c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fb8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fbb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.0057832c
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call fcn.0057832c
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4