Function at 0x100a95a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x1019842c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 3
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
je 0x100a9871
cmp dword [ebp + 0x14], 2
je 0x100a95de
cmp dword [ebp + 0x14], 1
je 0x100a95de
mov eax, 0x10000
jmp 0x100a9912
cmp dword [edi + 4], 0xffffffff
je 0x100a95ec
push dword [edi]
call fcn.100abede
pop ecx
mov eax, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jge 0x100a95d4
cmp ebx, dword [eax + 0x10]
jge 0x100a960f
push eax
call fcn.100abf6f
jmp 0x100a960e
push dword [edi]
call fcn.100abfae
pop ecx
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x100a9607
lea eax, [ebp - 0x644]
mov ecx, edi
push eax
push ebx
call fcn.100a8f00
test byte [ebp - 0x438], 0x10
je 0x100a966a
cmp dword [ebp + 0x14], 1
je 0x100a98f3
movzx eax, word [esi]
cmp eax, 0x2f
je 0x100a965b
cmp eax, 0x5c
je 0x100a965b
test ax, ax
je 0x100a9651
cmp word [esi + 2], 0x3a
je 0x100a965b
push esi
lea eax, [edi + 0x244]
push eax
jmp 0x100a965e
push esi
push 0
call fcn.100a8d05
pop ecx
pop ecx
jmp 0x100a98f3
xor ebx, ebx
cmp dword [ebp + 0x14], 1
je 0x100a9794
movzx eax, word [esi]
mov ecx, esi
push 0x5c
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x650], 0x2f
pop edx
jmp 0x100a96ad
cmp ax, word [ebp - 0x650]
je 0x100a969e
cmp ax, dx
jne 0x100a96a7
lea eax, [ecx + 2]
mov dword [ebp - 0x64c], eax
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x100a9690
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10109538
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64c]
cmp ecx, esi
jne 0x100a96d6
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x100a9718
mov eax, ecx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x100a9925
xor edx, edx
mov word [ebp + eax - 0x20c], dx
mov ax, word [ebp - 0x20c]
push 0x2f
pop edx
cmp ax, dx
je 0x100a974b
push 0x5c
pop edx
cmp ax, dx
je 0x100a974b
test ax, ax
je 0x100a9718
cmp word [ebp - 0x20a], 0x3a
je 0x100a974b
push ecx
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 0x244]
push esi
lea eax, [ebp - 0x414]
push 0x10139694
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.100a8d05
add esp, 0x1c
jmp 0x100a9775
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x10139688
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.100a8d05
add esp, 0x18
push ebx
push dword [ebp - 0x438]
lea eax, [ebp - 0x414]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a97a3
mov eax, 0x200
jmp 0x100a9912
push dword [edi + 0x23c]
push dword [edi]
call fcn.100ac0ba
pop ecx
pop ecx
cmp dword [edi + 0x240], ebx
jne 0x100a97cb
push 0x4000
call fcn.100e385a
pop ecx
mov dword [edi + 0x240], eax
lea eax, [ebp - 0x645]
push eax
push 0x4000
push dword [edi + 0x240]
push dword [edi]
call fcn.100ac379
add esp, 0x10
mov dword [ebp - 0x650], eax
cmp eax, 0xffffff96
je 0x100a9850
test eax, eax
js 0x100a9824
jle 0x100a9818
push ebx
lea ecx, [ebp - 0x64c]
push ecx
push eax
push dword [edi + 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a982b
mov eax, dword [ebp - 0x650]
cmp byte [ebp - 0x645], bl
jne 0x100a9832
test eax, eax
jne 0x100a97cb
mov ebx, 0x5000000
jmp 0x100a9855
mov ebx, 0x400
jmp 0x100a9855
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x100a9855
mov ebx, 0x1000
cmp dword [ebp + 0x14], 1
je 0x100a9862
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.100abede
pop ecx
mov eax, ebx
jmp 0x100a9912
mov ebx, dword [ebp + 8]
cmp ebx, dword [edi + 4]
je 0x100a98c3
cmp dword [edi + 4], 0xffffffff
je 0x100a9887
push dword [edi]
call fcn.100abede
pop ecx
mov eax, dword [edi]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [eax + 4]
jge 0x100a95d4
cmp ebx, dword [eax + 0x10]
jge 0x100a98ab
push eax
call fcn.100abf6f
jmp 0x100a98aa
push dword [edi]
call fcn.100abfae
pop ecx
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x100a98a3
push dword [edi + 0x23c]
push eax
call fcn.100ac0ba
pop ecx
pop ecx
mov dword [edi + 4], ebx
lea eax, [ebp - 0x645]
push eax
push dword [ebp + 0x10]
push esi
push dword [edi]
call fcn.100ac379
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x100a98ea
push dword [edi]
call fcn.100abede
or dword [edi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x645], 0
je 0x100a98f7
xor eax, eax
jmp 0x100a9912
test esi, esi
jle 0x100a9902
mov eax, 0x600
jmp 0x100a9912
cmp esi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e3849
mov esp, ebp
pop ebp
ret 0x10
call fcn.100e3f57
int3