Function at 0x1009333
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x1019e00
call fcn.0100c04b
lea ecx, [ebp - 0x38]
call fcn.0100762d
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call fcn.0100762d
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 1
call fcn.01006678
cmp eax, esi
jge 0x100938c
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.010075f1
lea ecx, [ebp - 0x38]
call fcn.010075f1
mov eax, esi
call fcn.0100c0f9
ret 4
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0100904f
cmp eax, esi
je 0x10093b2
push 0x1001d6c
push 4
call fcn.01005bd8
pop ecx
pop ecx
mov esi, 0x80004005
jmp 0x1009372
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x30]
push esi
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10093e4
push 0x100158c
push 4
call fcn.01005bd8
pop ecx
pop ecx
jmp 0x100965b
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
test ebx, ebx
jbe 0x1009682
or ebx, 0xffffffff
push ebx
push 0xd
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
mov eax, dword [ebp - 0x18]
push dword [eax + 8]
push dword [esi + 8]
push edi
call fcn.01006b1e
test eax, eax
jl 0x100965b
push ebx
push 2
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 3
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 4
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x1009370
push ebx
push 5
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 6
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 8
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 7
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 9
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 0xc
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
push ebx
push 0xe
push dword [esi + 8]
push edi
call fcn.010069a6
test eax, eax
jl 0x100965b
and dword [ebp - 0x10], 0
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 2
push dword [esi + 8]
call fcn.010067d1
test eax, eax
jl 0x100965b
mov eax, dword [ebp - 0x10]
add eax, 0x77
push eax
call fcn.0100aeb2
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x1009609
push ebx
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x77
push eax
push dword [ebp - 0x10]
push 2
push dword [esi + 8]
call fcn.0100672d
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x1009613
mov ebx, dword [ebp + 8]
add ebx, 0x10
je 0x100962c
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009645
and dword [ebp - 0x10], 0
cmp byte [ebx], 0
jbe 0x10095e5
add ebx, 4
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009645
push dword [ebp - 0x2c]
push dword [esi + 8]
push edi
call fcn.010068c5
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x100964c
push dword [ebp - 0x2c]
push 0xa
push dword [esi + 8]
push edi
call fcn.010069a6
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x100965b
mov eax, dword [ebp + 8]
inc dword [ebp - 0x10]
add eax, 0x10
movzx eax, byte [eax]
add ebx, 8
cmp dword [ebp - 0x10], eax
jb 0x100957b
push dword [ebp + 8]
call fcn.0100ae38
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc dword [ebp - 0x1c]
mov esi, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, dword [ebp - 0x30]
jb 0x10093fd
jmp 0x1009655
push 0x1001818
jmp 0x10093d6
push 0x10017f4
push 4
call fcn.01005bd8
push dword [ebp + 8]
call fcn.0100ae38
add esp, 0xc
jmp 0x1009655
push 0x10017f4
push 4
call fcn.01005bd8
push dword [ebp + 8]
call fcn.0100ae38
add esp, 0xc
jmp 0x100965b
push 0x100158c
jmp 0x1009631
push dword [ebp + 8]
call fcn.0100ae38
pop ecx
cmp dword [ebp - 0x20], 0
jge 0x1009682
mov edi, dword [ebp - 0x40]
mov esi, dword [edi]
jmp 0x100967e
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009673
push eax
call fcn.0100ae38
pop ecx
push dword [esi + 8]
call fcn.0100ae38
mov esi, dword [esi]
pop ecx
cmp esi, edi
jne 0x1009662
xor esi, esi
jmp 0x1009372