Function at 0x6c22bed4
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov esi, dword [esp + 0x114]
mov ebp, dword [esp + 0x118]
mov dword [esp + 4], 0x6c367c20
mov eax, dword [esp + 0x110]
mov dword [esp], eax
call fcn.6c21008c
mov ebx, eax
test eax, eax
je 0x6c22c319
lea edi, [esp + 0xcc]
mov ecx, 0x14
xor eax, eax
rep stosb byte es:[edi], al
mov word [esp + 0xcc], 8
mov word [esp + 0xce], 8
mov word [esp + 0xd0], 8
mov word [esp + 0xd2], 8
mov word [esp + 0xd4], 1
mov word [esp + 0xd6], 1
mov word [esp + 0xd8], 1
mov word [esp + 0xda], 1
mov byte [esp + 0xe0], 0x49
mov byte [esp + 0xe1], 0x49
mov word [esp + 0xe2], 0x2a
mov edx, esi
imul edx, ebp
mov dword [esp + 0x1c], edx
lea eax, [edx*4 + 0x11c]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 1
lea eax, [esp + 0xe0]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x100
mov eax, dword [esp + 0x120]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x14
lea eax, [esp + 0xcc]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x124]
test edx, edx
je 0x6c22c32c
test ebp, ebp
jle 0x6c22c063
lea edx, [esi*4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x11c]
xor edi, edi
mov dword [esp + 0x14], ebp
mov ebp, esi
mov esi, ebx
mov ebx, edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], 4
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
inc edi
add ebx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jne 0x6c22c038
mov ebx, esi
mov esi, ebp
mov ebp, dword [esp + 0x14]
mov word [esp + 0xee], 0xe
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
lea eax, [esp + 0xee]
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], si
mov word [esp + 0x30], 0x101
mov word [esp + 0x32], 3
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov word [esp + 0x38], bp
mov word [esp + 0x3c], 0x102
mov word [esp + 0x3e], 3
mov dword [esp + 0x40], 4
mov dword [esp + 0x44], 0x108
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], 2
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], 0x11c
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], 4
mov word [esp + 0x90], 0x116
mov word [esp + 0x92], 4
mov dword [esp + 0x94], 1
mov dword [esp + 0x98], ebp
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], 0x152
mov word [esp + 0xb6], 3
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 0
mov word [esp + 0xbc], 2
mov word [esp + 0xc0], 0x153
mov word [esp + 0xc2], 3
mov dword [esp + 0xc4], 4
mov dword [esp + 0xc8], 0x110
cmp word [esp + 0xee], 0xe
jne 0x6c22c38f
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xa8
mov dword [esp + 4], 1
lea eax, [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xe8], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea eax, [esp + 0xe8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt_ruby200.dll_fclose
mov eax, 1
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, ebp
dec edi
js 0x6c22c063
mov eax, esi
neg eax
shl eax, 2
mov dword [esp + 0x14], eax
lea edx, [edi*4]
imul edx, esi
add edx, dword [esp + 0x11c]
mov dword [esp + 0x18], ebp
mov ebp, esi
mov esi, ebx
mov ebx, edi
mov edi, edx
lea esi, [esi]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], 4
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
dec ebx
add edi, dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x6c22c360
mov ebx, esi
mov esi, ebp
mov ebp, dword [esp + 0x18]
jmp 0x6c22c063
mov dword [esp + 8], 0x3ac
mov dword [esp + 4], str.writers.cpp
mov dword [esp], str.entry___entries__ifd.numentries
call sub.msvcrt.dll__assert
nop
mov eax, dword [esp + 4]
ret