Function at 0x1000a6f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101116f8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x28], eax
xor eax, eax
push 0x30
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x59], eax
mov word [esp + 0x5d], ax
mov byte [esp + 0x5f], al
call fcn.100b2d30
mov ax, word [0x10286b04]
mov edx, dword [str.kdown_]
mov cl, byte [0x10286b06]
mov word [esp + 0x5c], ax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0xa8]
sar eax, 2
mov byte [esp + 0x5e], cl
mov ecx, dword [esp + 0xac]
lea esi, [eax + eax*4]
lea esi, [esi*8 + 0x38]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xb4]
push esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x8c], eax
call fcn.100b0a2f
push esi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x38], ebx
call fcn.100b2d30
mov edi, ebx
mov ecx, 0xe
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
add ebx, 0x38
mov dword [esp + 0x34], ebx
sar eax, 2
xor edi, edi
add esp, 0x1c
xor ebx, ebx
cmp eax, edi
jbe 0x1000a828
cmp ebx, eax
jb 0x1000a802
call fcn.100b2342
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + ebx*4]
mov edi, dword [esp + 0x18]
add dword [esp + 0x18], 0x28
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x1000a802
xor edi, edi
mov eax, dword [0x102b0b9c]
mov edx, dword [eax + 0xc]
mov ecx, 0x102b0b9c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
push str..fd.cfg
lea ecx, [esp + 0x28]
mov dword [esp + 0x94], edi
call fcn.10002f20
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x9c], 1
call fcn.10003010
add esp, 0xc
mov byte [esp + 0x90], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x1000a8d0
cmp dword [esi + 0xc], edi
lea ebx, [esi + 0xc]
jl 0x1000a8be
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1000a8be
push eax
call fcn.10003c40
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1000a8b5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [ebp + 0x10]
mov dword [esp + 0x18], ebx
jmp 0x1000a8d0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10003b90
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a8f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a920
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.10002e70
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
cmp eax, edi
jne 0x1000a97e
mov ecx, dword [esp + 0x3c]
push edi
push 0x20
push 4
push edi
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
jne 0x1000a973
xor eax, eax
mov dword [esp + 0x2c], eax
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x1000a9a6
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x24]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000a9a6
cmp dword [esp + 0x20], esi
jne 0x1000a9a6
mov esi, 1
jmp 0x1000a9a8
xor esi, esi
mov edx, dword [esp + 0x1c]
push edx
call fcn.100b2d1b
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, edi
je 0x1000a9c8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a9e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x90], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aa0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100b2738
add esp, 0x80
ret 0x18