Function at 0x6c22bb14
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov ebp, dword [esp + 0xf4]
mov dword [esp + 4], 0x6c367c20
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
call fcn.6c21008c
mov edi, eax
test eax, eax
je 0x6c22bea7
mov byte [esp + 0xc0], 0x49
mov byte [esp + 0xc1], 0x49
mov word [esp + 0xc2], 0x2a
mov edx, dword [esp + 0xf8]
imul edx, ebp
mov dword [esp + 0x1c], edx
lea eax, [edx*4 + 0x108]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 8
mov dword [esp + 4], 1
lea eax, [esp + 0xc0]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x100
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov ebx, dword [esp + 0xf8]
dec ebx
js 0x6c22bc0a
mov eax, ebp
neg eax
shl eax, 2
mov dword [esp + 0x18], eax
mov edx, ebp
imul edx, ebx
mov eax, dword [esp + 0xfc]
lea esi, [eax + edx*4]
nop
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
mov dword [esp + 4], 4
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
dec ebx
add esi, dword [esp + 0x18]
cmp ebx, 0xffffffff
jne 0x6c22bbe8
mov word [esp + 0xce], 0xd
mov dword [esp + 0xc], edi
mov dword [esp + 8], 2
mov dword [esp + 4], 1
lea eax, [esp + 0xce]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov word [esp + 0x24], 0x100
mov word [esp + 0x26], 3
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov word [esp + 0x2c], bp
mov word [esp + 0x30], 0x101
mov word [esp + 0x32], 3
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0xf8]
mov word [esp + 0x38], ax
mov word [esp + 0x3c], 0x102
mov word [esp + 0x3e], 3
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0
mov word [esp + 0x44], 0x20
mov word [esp + 0x48], 0x103
mov word [esp + 0x4a], 3
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0
mov word [esp + 0x50], 1
mov word [esp + 0x54], 0x106
mov word [esp + 0x56], 3
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov word [esp + 0x5c], 1
mov word [esp + 0x60], 0x10e
mov word [esp + 0x62], 2
mov dword [esp + 0x64], 0xc0
mov dword [esp + 0x68], 0x48
mov word [esp + 0x6c], 0x111
mov word [esp + 0x6e], 4
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 0x108
mov word [esp + 0x78], 0x112
mov word [esp + 0x7a], 3
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], 0
mov word [esp + 0x80], 1
mov word [esp + 0x84], 0x115
mov word [esp + 0x86], 3
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], 0
mov word [esp + 0x8c], 1
mov word [esp + 0x90], 0x116
mov word [esp + 0x92], 4
mov dword [esp + 0x94], 1
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x98], edx
mov word [esp + 0x9c], 0x117
mov word [esp + 0x9e], 4
mov dword [esp + 0xa0], 1
mov eax, dword [esp + 0x1c]
shl eax, 2
mov dword [esp + 0xa4], eax
mov word [esp + 0xa8], 0x131
mov word [esp + 0xaa], 2
mov dword [esp + 0xac], 0x40
mov dword [esp + 0xb0], 8
mov word [esp + 0xb4], 0x153
mov word [esp + 0xb6], 3
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 0
mov word [esp + 0xbc], 3
cmp word [esp + 0xce], 0xd
jne 0x6c22beb7
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x9c
mov dword [esp + 4], 1
lea eax, [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea eax, [esp + 0xc8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt_ruby200.dll_fclose
mov eax, 1
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x300
mov dword [esp + 4], str.writers.cpp
mov dword [esp], str.entry___entries__ifd.numentries
call sub.msvcrt.dll__assert
nop