Function at 0x100a72d0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130ebd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2b8], edi
mov esi, ecx
mov dword [ebp - 0x2c8], esi
test esi, esi
jne 0x100a731b
mov eax, 0x80070057
jmp 0x100a76b0
mov dword [ebp - 0x2b4], 0
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 0
mov eax, dword [esi]
push ecx
push 0
push 0
push 0
push esi
call dword [eax + 0x2c]
test eax, eax
jns 0x100a734d
mov esi, 0x80004005
jmp 0x100a7697
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100fc650
mov eax, dword [ebp - 0x2b4]
lea edx, [ebp - 0x2a8]
add esp, 0xc
mov ecx, dword [eax]
push 0
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100a7695
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x2a4]
cmp eax, 1
jne 0x100a7535
mov dword [ebp - 0x2ac], 0
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], al
mov eax, dword [esi]
push ecx
push 0
push 0
push 0x10
push 0
push dword [ebp - 0x2a8]
push esi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x100a765e
push 0x101601ac
mov edx, edi
lea ecx, [ebp - 0x260]
call fcn.10043dd0
add esp, 4
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2a8]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2c0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a7405
sub ecx, dword [ebp - 0x2c0]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x2bc]
push edx
call fcn.10043c90
mov dword [ebp - 0x238], 0
xor ecx, ecx
mov dword [ebp - 0x234], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x238], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x101601ac
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.10043c90
mov dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x248]
call fcn.10043ac0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
call fcn.10043ac0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a74f5
test al, 0x10
jne 0x100a750e
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.1004d270
mov ecx, dword [ebp - 0x2ac]
lea edx, [ebp - 0x230]
call fcn.100a72d0
lea ecx, [ebp - 0x230]
call fcn.10043ac0
mov eax, dword [ebp - 0x2ac]
jmp 0x100a765c
cmp eax, 2
jne 0x100a766a
mov dword [ebp - 0x2b0], 0
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 7
mov eax, dword [esi]
push ecx
push 0
push 0x10
push 0
push dword [ebp - 0x2a8]
push esi
call dword [eax + 0x10]
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x100a765e
mov esi, dword [ebp - 0x2a0]
push esi
call fcn.101085fd
mov edi, eax
add esp, 4
mov dword [ebp - 0x2bc], edi
mov byte [ebp - 4], 8
lea edx, [ebp - 0x2c4]
mov eax, dword [ebp - 0x2b0]
push edx
push esi
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x2b8]
mov esi, eax
cmp dword [eax + 0x14], 8
jb 0x100a75b3
mov esi, dword [eax]
lea eax, [ebp - 0x218]
mov edx, 0x104
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x100a75e0
movzx ecx, word [esi + eax]
test cx, cx
je 0x100a75e0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x100a75c2
push dword [ebp - 0x2a8]
lea ecx, [eax - 2]
test edx, edx
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100a7641
push 0
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2c4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.101080bf
mov eax, dword [ebp - 0x2b0]
add esp, 4
mov esi, dword [ebp - 0x2c8]
mov edi, dword [ebp - 0x2b8]
test eax, eax
mov byte [ebp - 4], 0
je 0x100a766a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x2a8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x2b4]
lea edx, [ebp - 0x2a8]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100a7390
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
je 0x100a76ae
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret