Function at 0x5a3f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x665cd8
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jne 0x5a3fdb
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push 0x80
push 3
push 1
push connect
push eax
call fcn.005a27f0
mov dword [esi + 8], eax
cmp eax, edi
jne 0x5a3fdb
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
cmp dword [esi + 0xc], edi
jne 0x5a413c
mov eax, dword [esi + 0x14]
push 0x67f4e0
lea ecx, [ebp - 0x10]
mov dword [esi + 0xc], 1
mov dword [ebp - 0x18], eax
mov dword [esi + 0x14], edi
call fcn.00415220
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.005a2ed0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5a4034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x67f4dc
lea ecx, [ebp - 0x14]
call fcn.00415220
mov edi, eax
mov bl, 4
mov byte [ebp - 4], bl
push str.version
lea ecx, [ebp - 0x10]
call fcn.00415220
mov byte [ebp - 4], 5
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.005a2f50
mov byte [ebp - 4], bl
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 0x5a4085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5a40a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x674730
lea ecx, [ebp - 0x10]
call fcn.00415220
mov edi, eax
mov bl, 8
mov byte [ebp - 4], bl
push str.encoding
lea ecx, [ebp - 0x14]
call fcn.00415220
mov byte [ebp - 4], 9
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.005a2f50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5a40f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
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 0x5a411c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.005a3930
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x14], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.005085d0
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or edx, dword [eax - 8]
jge 0x5a415a
push 0
mov ecx, edi
call fcn.00405120
test ebx, ebx
je 0x5a417b
mov ecx, dword [edi]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [edx]
push ebx
push ecx
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4