Function at 0x1002aac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e605d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1011d1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0xa], 0
jne 0x1002ab10
mov eax, dword [0x1011de3c]
cmp eax, 0x1011de3c
je 0x1002ab4e
test byte [eax + 0x1c], 0x10
je 0x1002ab4e
cmp byte [eax + 0x19], 2
jb 0x1002ab4e
mov ecx, 0x11
jmp 0x1002ab3b
mov ecx, eax
call fcn.1002a6d0
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1002ab67
mov eax, dword [0x1011de3c]
cmp eax, 0x1011de3c
je 0x1002ab4e
test byte [eax + 0x1c], 0x10
je 0x1002ab4e
cmp byte [eax + 0x19], 2
jb 0x1002ab4e
mov ecx, 0x12
push dword [eax + 0x14]
mov edx, 0x10102ba8
push dword [eax + 0x10]
call fcn.10022c70
add esp, 8
mov eax, 0x8000ffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1002ab74
mov dword [eax], 0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1002acbd
xor esi, esi
xor edi, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x1002ac43
push ebx
lea ecx, [ebp - 0x20]
lfence
call fcn.1002a0d0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub eax, esi
cmp eax, ebx
je 0x1002abef
mov eax, dword [0x1011de3c]
cmp eax, 0x1011de3c
je 0x1002abe2
test byte [eax + 0x1c], 0x10
je 0x1002abe2
cmp byte [eax + 0x19], 2
jb 0x1002abe2
push dword [eax + 0x14]
mov edx, 0x10102ba8
lea ecx, [edi + 0x13]
push dword [eax + 0x10]
call fcn.10022c70
add esp, 8
mov edi, dword [ebp - 0x18]
mov ebx, 0x8000ffff
jmp 0x1002acd8
push ebx
push dword [ebp + 0xc]
lfence
push esi
call fcn.100c0760
add esp, 0xc
mov edx, ebx
mov ecx, esi
call fcn.1000e170
cmp ebx, eax
je 0x1002ac3c
mov eax, dword [0x1011de3c]
cmp eax, 0x1011de3c
je 0x1002ac3c
test byte [eax + 0x1c], 0x10
je 0x1002ac3c
cmp byte [eax + 0x19], 2
jb 0x1002ac3c
push dword [eax + 0x14]
mov edx, 0x10102ba8
mov ecx, 0x14
push dword [eax + 0x10]
call fcn.10022c70
add esp, 8
mov edi, dword [ebp - 0x18]
mov eax, esi
jmp 0x1002ac46
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
lfence
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002acd3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xffffffff
je 0x1002acd3
cmp ecx, ebx
jne 0x1002acd3
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1002ac73
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1002acbd
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x1002ac9e
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ad34
push edi
push esi
call fcn.100be473
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, 0x80030103
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1002ad1e
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x1002acff
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ad34
push edi
push esi
call fcn.100be473
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.100c3f97
int3