Function at 0x100a6490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101f3540]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100a64e6
xor al, al
jmp 0x100a66af
mov dword [ebp - 0x5c], 0x3e8
lea ecx, [ebp - 0x5c]
push ecx
push 0x95e97e5e
push 0x4671ae97
lea ecx, [ebp - 0x20]
call fcn.1009d930
nop
lea ecx, [ebp - 0x20]
call fcn.100a2340
add eax, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x101f8dbc
mov ecx, dword [ebp - 0x2c]
call fcn.100a7a10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
call fcn.100a7aa0
mov dword [ebp - 0x34], eax
jmp 0x100a653a
mov edx, dword [ebp - 0x30]
add edx, 0x14
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
je 0x100a655c
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
call fcn.100a2340
mov edx, dword [ebp - 0x28]
lea eax, [edx + eax + 8]
mov dword [ebp - 0x28], eax
jmp 0x100a6531
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.100f3210
cmp eax, 0xffffffff
je 0x100a65c2
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp esi, esp
call fcn.100f3210
nop
mov esi, esp
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.100f3210
cmp eax, 0xffffffff
jne 0x100a65c2
mov byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x20]
call fcn.100a0d80
mov al, byte [ebp - 0x5d]
jmp 0x100a66af
mov edx, dword [ebp - 0x28]
push edx
call fcn.100f05e0
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.100a69a0
add esp, 8
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x101f8dbc
mov ecx, dword [ebp - 0x48]
call fcn.100a7a10
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x48]
call fcn.100a7aa0
mov dword [ebp - 0x50], eax
jmp 0x100a661e
mov ecx, dword [ebp - 0x4c]
add ecx, 0x14
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x50]
je 0x100a664d
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x40]
jbe 0x100a6635
int3
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.100a69a0
add esp, 8
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
jmp 0x100a6615
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 0x58], eax
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
mov eax, dword [ebp - 0x3c]
push eax
call fcn.100f0630
add esp, 4
cmp dword [ebp - 0x58], 0
je 0x100a669a
mov byte [ebp - 0x5f], 1
jmp 0x100a669e
mov byte [ebp - 0x5f], 0
mov cl, byte [ebp - 0x5f]
mov byte [ebp - 0x5e], cl
lea ecx, [ebp - 0x20]
call fcn.100a0d80
mov al, byte [ebp - 0x5e]
push edx
mov ecx, ebp
push eax
lea edx, [0x100a66dc]
call fcn.100f31b0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f3240
add esp, 0x60
cmp ebp, esp
call fcn.100f3210
mov esp, ebp
pop ebp
ret