Function at 0x40fae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4365c6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
push str.client.checkupdate
push str.action
call eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0
push 0x44041c
push str.updateAddr
call eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040fa20
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx]
push str.clientInfo
call eax
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [0x448ff8], 1
jne 0x40fbba
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
or dword [0x448ff8], 1
mov ecx, section..data
call eax
add eax, 0x10
push 0x437440
mov dword [0x448ffc], eax
call fcn.004204a6
add esp, 4
lea esi, [ebp - 0x10]
mov ecx, 0x448ffc
call fcn.004049b0
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx]
push str.updateNumber
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40fc00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x10]
call fcn.004104a0
push 0
push 0x1e
mov dword [ebp - 4], 2
mov eax, dword [eax]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov esi, 1
push esi
push eax
mov eax, dword [edx + 0xc]
push esi
push ebx
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test byte [0x449000], 1
jne 0x40fc94
or dword [0x449000], esi
mov byte [ebp - 4], 4
call fcn.00401000
push 0x437470
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 3
push 0x449004
mov ecx, str.path
lea edx, [ebp - 0x14]
call fcn.00401ad0
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x44900c]
jne 0x40fcb5
xor eax, eax
jmp 0x40fcb8
mov eax, dword [eax + 0x10]
push str.GUID.db
push eax
push 0x43b32c
lea edi, [ebp - 0x10]
call fcn.00404180
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 0x44044c
push ecx
call fcn.00420aa2
add esp, 8
test byte [0x448ff8], 1
mov edi, eax
mov dword [ebp - 0x14], edi
jne 0x40fd18
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
or dword [0x448ff8], esi
mov ecx, section..data
call eax
add eax, 0x10
push 0x437440
mov dword [0x448ffc], eax
call fcn.004204a6
add esp, 4
lea esi, [ebp - 0x18]
mov ecx, 0x448ffc
call fcn.004049b0
mov byte [ebp - 4], 5
mov ebx, dword [eax]
test ebx, ebx
je 0x40fd76
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea esi, [eax + 1]
push esi
call fcn.0041f33f
add esp, 4
push esi
mov edi, eax
push 0
push edi
call fcn.004224d0
add esp, 0xc
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, edi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [0x448ff8], 1
jne 0x40fdce
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
or dword [0x448ff8], 1
mov ecx, section..data
call eax
add eax, 0x10
push 0x437440
mov dword [0x448ffc], eax
call fcn.004204a6
add esp, 4
lea esi, [ebp - 0x14]
mov ecx, 0x448ffc
call fcn.004049b0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
push edi
push eax
push 1
push ebx
call fcn.00421037
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fe0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x40fe19
push ebx
call fcn.00420378
add esp, 4
push edi
call fcn.00420b6d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret