Function at 0x1000a160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100744a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x10], ecx
imul eax, dword [ebp + 8], 0x3c
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x4178]
or edx, dword [ecx + 0x417c]
jne 0x1000a20e
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x419c
call fcn.10011f00
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp - 0x28]
push eax
call dword [0x100ad888]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000a20e
push 0
lea ecx, [ebp - 0x34]
push ecx
push 8
mov edx, dword [ebp - 0x10]
add edx, 0x4178
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [0x100ad88c]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov word [ebp - 0x6c], dx
xor eax, eax
mov dword [ebp - 0x6a], eax
mov dword [ebp - 0x66], eax
mov dword [ebp - 0x62], eax
mov word [ebp - 0x5e], ax
mov dword [ebp - 0x4c], 0
xor ecx, ecx
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x6c]
push edx
call dword [0x100ad884]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call dword [0x100ad880]
mov eax, dword [ebp - 0x48]
xor edx, edx
and eax, 0x7fffffff
and edx, 0
mov cl, 0x20
call fcn.1001ea80
xor ecx, ecx
or eax, dword [ebp - 0x4c]
or edx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x44]
sub eax, dword [edx + 0x4178]
mov ecx, dword [ebp - 0x40]
sbb ecx, dword [edx + 0x417c]
push 0
push 0x989680
push ecx
push eax
call fcn.1001e990
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x58]
jl 0x1000a34b
jg 0x1000a2ab
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x5c]
jbe 0x1000a34b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0x4178], edx
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x417c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x419c
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x1000a2eb
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
jmp 0x1000a2f1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 0x30]
push eax
call dword [0x100ad888]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x1000a342
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 8
mov edx, dword [ebp - 0x10]
add edx, 0x4178
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1000a34d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4