Function at 0x10003bb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10011008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
mov esi, ecx
mov bx, dx
push 1
push 2
mov word [ebp - 0xe], bx
call dword [esi + 0x1ac]
mov ecx, eax
lea eax, [esi + 0x1a4]
push 4
push eax
push 0x1006
push 0xffff
push ecx
mov dword [esi + 0x190], ecx
call dword [esi + 0x1b0]
mov ecx, dword [esi + 0x190]
cmp ecx, 0xffffffff
je 0x10003df6
push 0x10
lea eax, [esi + 0x194]
push eax
push ecx
call dword [esi + 0x1c0]
test eax, eax
jne 0x10003dd9
mov al, byte [ebp + 8]
lea ecx, [ebp - 0xc]
mov byte [ebp - 8], 1
mov word [ebp - 7], bx
mov byte [ebp - 5], al
call fcn.10005112
push 4
lea eax, [ebp - 8]
push eax
call fcn.10005119
xor ecx, ecx
call fcn.1000356b
lea edi, [eax + 8]
push edi
call fcn.1000c2a8
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.1000356b
mov edx, eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], edx
call fcn.10005116
push 0
push edi
mov dword [edx + ebx], eax
lea ecx, [edx + ebx]
mov eax, dword [ebp - 8]
push ebx
mov dword [ecx + 4], eax
push dword [esi + 0x190]
call dword [esi + 0x1c8]
test eax, eax
jle 0x10003dc2
push 0
push edi
push ebx
push dword [esi + 0x190]
call dword [esi + 0x1cc]
cmp eax, edi
jne 0x10003dbe
mov ecx, ebx
call fcn.10003586
test al, al
je 0x10003dba
lea ecx, [ebp - 0xc]
call fcn.10005112
mov eax, dword [ebp - 0x14]
sub edi, eax
sub edi, 4
push edi
lea edi, [eax + 4]
add edi, ebx
push edi
call fcn.10005119
lea ecx, [ebp - 0xc]
call fcn.10005116
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + ebx], eax
jne 0x10003db6
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov cl, byte [ebp - 8]
cmp cl, 0x7e
jne 0x10003da9
mov ecx, eax
shr ecx, 8
cmp cx, word [ebp - 0xe]
jne 0x10003da5
shr eax, 0x18
cmp al, byte [ebp + 8]
jne 0x10003da1
push 0xfffffffffffffffe
pop ecx
call fcn.100035b5
push eax
call fcn.10003142
push ebx
call fcn.1000c2a3
push 0x401
call fcn.1000c2a8
mov ebx, 0x200
mov edi, eax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
push 0x1000e6a0
call fcn.10003e16
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
pop ecx
pop ecx
mov ebx, eax
jmp 0x10003d70
push eax
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push 0
push 0x400
push edi
push dword [esi + 0x190]
call dword [esi + 0x1cc]
push ebx
test eax, eax
jg 0x10003d63
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
push dword [esi + 0x190]
call dword [esi + 0x1b4]
xor eax, eax
inc eax
jmp 0x10003e07
push 9
jmp 0x10003dc4
push 8
jmp 0x10003dc4
cmp cl, 0xff
jne 0x10003db2
push 0xa
jmp 0x10003dc4
push 7
jmp 0x10003dc4
push 6
jmp 0x10003dc4
push 5
jmp 0x10003dc4
push 4
jmp 0x10003dc4
push 3
pop ecx
call fcn.100035b5
push eax
call fcn.10003142
pop ecx
push ebx
call fcn.1000c2a3
jmp 0x10003de7
push 2
pop ecx
call fcn.100035b5
push eax
call fcn.10003142
pop ecx
push dword [esi + 0x190]
call dword [esi + 0x1b4]
jmp 0x10003e05
xor ecx, ecx
inc ecx
call fcn.100035b5
push eax
call fcn.10003142
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bfc7
leave
ret