Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
push edi
shl esi, 5
push esi
call fcn.0044de0c
push esi
push 0
push eax
mov dword [ebp - 4], eax
call fcn.0044ecf0
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x402b90
mov esi, dword [ebp - 4]
nop
mov eax, dword [ebp + 8]
push dword [eax + edi*4]
lea eax, [ebp - 0x50]
push eax
call fcn.00404080
movq xmm0, qword [eax]
movq qword [esi], xmm0
movq xmm0, qword [eax + 8]
movq qword [esi + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [eax + 0x18]
inc edi
add esp, 8
movq qword [esi + 0x18], xmm0
lea esi, [esi + 0x20]
cmp edi, ebx
jl 0x402b50
push 0x47e764
push dword [ebp + 0x10]
mov dword [ebp - 0x30], 0x10000
mov word [ebp - 0x2c], bx
call fcn.0044d648
mov esi, eax
push esi
push 1
lea eax, [ebp - 0x30]
push 2
push eax
call fcn.0044dc6d
push esi
push 1
lea eax, [ebp - 0x2e]
push 2
push eax
call fcn.0044dc6d
push esi
push 1
lea eax, [ebp - 0x2c]
push 2
push eax
call fcn.0044dc6d
push esi
call fcn.0044da9d
mov edi, ebx
shl edi, 4
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0x10
call fcn.0044de0c
add esp, 0x40
mov dword [ebp - 0xc], eax
push edi
push 0
push eax
call fcn.0044ecf0
mov ecx, dword [ebp - 8]
imul ecx, ebx
add esp, 0xc
xor edi, edi
test ecx, ecx
jle 0x402c2c
lea ecx, [ecx]
push esi
push 1
lea eax, [ebp - 8]
push 1
push eax
call fcn.0044dc6d
mov eax, dword [ebp - 8]
imul eax, ebx
inc edi
add esp, 0x10
cmp edi, eax
jl 0x402c10
test ebx, ebx
jle 0x402ca2
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
add eax, 0x14
mov dword [ebp - 0x10], ebx
add edi, 2
mov ebx, eax
push esi
call fcn.0044da9d
mov ecx, dword [ebx]
mov dword [edi + 0xa], eax
movzx eax, byte [ebx - 0x14]
mov byte [edi - 2], al
movzx eax, byte [ebx - 0x10]
mov byte [edi - 1], al
movzx eax, byte [ecx + 0x20]
mov byte [edi], al
mov ax, word [ebx - 0xc]
mov word [edi + 4], ax
mov eax, 1
push esi
push eax
push dword [ebx - 4]
mov word [edi + 2], ax
push dword [ebx - 8]
mov dword [ecx + 0x14], 0
call fcn.0044dc6d
push esi
call fcn.0044da9d
sub eax, dword [edi + 0xa]
add esp, 0x18
dec dword [ebp - 0x10]
mov dword [edi + 6], eax
lea ebx, [ebx + 0x20]
lea edi, [edi + 0x10]
jne 0x402c41
mov ebx, dword [ebp + 0xc]
push 0
push dword [ebp - 0x18]
push esi
call fcn.0044d87b
add esp, 0xc
test ebx, ebx
jle 0x402d3d
mov edi, dword [ebp - 0xc]
add edi, 2
mov dword [ebp - 0x18], ebx
push esi
push 1
lea eax, [edi - 2]
push 1
push eax
call fcn.0044dc6d
push esi
push 1
lea eax, [edi - 1]
push 1
push eax
call fcn.0044dc6d
push esi
push 1
push 1
push edi
call fcn.0044dc6d
push esi
push 1
lea eax, [edi + 1]
push 1
push eax
call fcn.0044dc6d
add esp, 0x40
lea eax, [edi + 2]
push esi
push 1
push 2
push eax
call fcn.0044dc6d
push esi
push 1
lea eax, [edi + 4]
push 2
push eax
call fcn.0044dc6d
push esi
push 1
lea eax, [edi + 6]
push 4
push eax
call fcn.0044dc6d
push esi
push 1
lea eax, [edi + 0xa]
push 4
push eax
call fcn.0044dc6d
add esp, 0x40
add edi, 0x10
dec ebx
jne 0x402cc1
mov ebx, dword [ebp + 0xc]
push esi
call fcn.0044d775
push dword [ebp - 0xc]
call fcn.0044dd2f
add esp, 8
test ebx, ebx
jle 0x402d68
mov esi, dword [ebp - 4]
add esi, 0xc
push dword [esi]
call fcn.0044dd2f
add esp, 4
lea esi, [esi + 0x20]
dec ebx
jne 0x402d58
push dword [ebp - 4]
call fcn.0044dd2f
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret