Function at 0x1000a7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10047410]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
mov dword [ebp - 0x250], edi
lea edx, [ebp - 0x114]
test eax, eax
je 0x1000a7dc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000a7d0
jmp 0x1000a7ed
mov eax, dword [0x10058d04]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000a7e3
mov esi, dword [esi + 8]
lea eax, [ebp - 0x114]
push 0x104
push eax
mov ecx, eax
push ecx
call fcn.10023350
lea eax, [ebp - 0x114]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a810
sub eax, edx
test eax, eax
jle 0x1000a83e
mov cl, byte [ebp + eax - 0x115]
cmp cl, 0x5c
je 0x1000a83e
cmp cl, 0x2f
je 0x1000a83e
mov byte [ebp + eax - 0x114], 0x5c
mov byte [ebp + eax - 0x113], 0
push 0x104
lea edx, [ebp - 0x114]
push esi
push edx
call fcn.10023100
add esp, 0xc
lea eax, [ebp - 0x114]
call fcn.10017da0
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a867
sub eax, edx
je 0x1000a875
dec eax
jmp 0x1000a877
xor eax, eax
lea eax, [ebp + eax - 0x114]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x1000a8a0
mov cl, byte [eax - 1]
cmp cl, 0x5c
je 0x1000a8a0
cmp cl, 0x2f
je 0x1000a8a0
dec eax
lea edx, [ebp - 0x114]
cmp eax, edx
jne 0x1000a888
lea ecx, [ebp - 0x114]
sub eax, ecx
mov esi, eax
cmp eax, 0x103
jl 0x1000a8b6
mov esi, 0x103
push esi
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.10029240
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov byte [ebp + esi - 0x21c], 0
call fcn.10022ca4
add esp, 8
cmp eax, 0xffffffff
jne 0x1000a8fb
lea ecx, [ebp - 0x21c]
call fcn.1000ae40
lea eax, [ebp - 0x114]
push 0x1003e808
push eax
call fcn.1001fdd8
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000aa10
mov ecx, dword [edi + 4]
mov edi, dword [ecx + 0xc]
push 0x80000
call fcn.1001f56a
mov esi, eax
add esp, 4
test esi, esi
je 0x1000a9ef
test edi, edi
je 0x1000a9e6
mov edi, edi
mov edx, dword [ebp - 0x250]
add edx, 0xc
push 0x62
push edx
call fcn.10021160
add esp, 8
cmp edi, 0x80000
jb 0x1000a9ac
test eax, eax
je 0x1000a97a
mov eax, dword [ebp - 0x250]
push eax
push 0x80000
mov eax, 1
mov edx, esi
call fcn.1000aa30
jmp 0x1000a991
mov ecx, dword [ebp - 0x250]
push ecx
push 0x80000
push esi
mov eax, 1
call fcn.1000abe0
push ebx
push 0x80000
push 1
push esi
call fcn.10021ca7
add esp, 0x10
sub edi, 0x80000
jne 0x1000a940
jmp 0x1000a9e6
test eax, eax
je 0x1000a9c6
mov eax, dword [ebp - 0x250]
push eax
push edi
mov eax, 1
mov edx, esi
call fcn.1000aa30
jmp 0x1000a9d9
mov ecx, dword [ebp - 0x250]
push ecx
push edi
push esi
mov eax, 1
call fcn.1000abe0
push ebx
push edi
push 1
push esi
call fcn.10021ca7
add esp, 0x10
push esi
call fcn.1001f530
add esp, 4
push ebx
call fcn.1001fea3
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001f521
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1001f521
mov esp, ebp
pop ebp
ret 4