Function at 0x1001a86
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
inc ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
jbe 0x1001aba
cmp dword [ebp + 0xc], esi
je 0x1001ac0
cmp dword [ebp + 0x10], 0x18
jb 0x1001ac0
cmp dword [ebp + 8], 0xffffffff
jne 0x1001af0
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001ae9
test byte [eax + 0x1c], 2
je 0x1001ae9
push 0x10011ac
push 0x100113c
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001333
xor eax, eax
jmp 0x1001ca5
push esi
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, esi
jne 0x1001b3a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001ae9
test byte [eax + 0x1c], 1
je 0x1001ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x10011ac
push 0x100113c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
jmp 0x1001ae9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001ba8
call ebx
cmp eax, 0x3e5
je 0x1001ba8
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001ba0
test byte [eax + 0x1c], 1
je 0x1001ba0
call ebx
push eax
mov eax, dword [section..data]
push 0x10011ac
push 0x100113c
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
mov dword [ebp - 8], esi
jmp 0x1001c98
mov edi, 0x10011ac
mov esi, 0x100113c
inc dword [ebp - 4]
push 1
push 0x1388
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1001c24
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001c00
test byte [eax + 0x1c], 2
je 0x1001c00
call ebx
push eax
push dword [ebp + 0x10]
mov eax, dword [section..data]
push dword [ebp - 4]
push edi
push esi
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010015cb
mov eax, dword [section..data]
cmp dword [ebp - 4], 5
jb 0x1001bb2
cmp eax, section..data
je 0x1001c64
test byte [eax + 0x1c], 1
je 0x1001c64
push edi
push esi
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001333
jmp 0x1001c64
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1001c6a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001c64
test byte [eax + 0x1c], 1
je 0x1001c64
call ebx
push eax
mov eax, dword [section..data]
push edi
push esi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
and dword [ebp - 8], 0
jmp 0x1001c98
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
test eax, eax
je 0x1001c76
mov dword [eax], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001c98
test byte [eax + 0x1c], 2
je 0x1001c98
push ecx
push edi
push esi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret 0x10