Function at 0x4a6d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x328]
push edi
mov edi, dword [ebp + 8]
push 0x2e4
push 0
push eax
call fcn.00595760
mov cx, word [esi + 0x2c]
xor eax, eax
movdqu xmm0, xmmword [str.00.6700_00.3300]
mov word [ebp - 0x328], ax
dec cx
mov word [ebp - 0x324], ax
xor edx, edx
mov ax, word [esi + 0x30]
mov ebx, 1
dec ax
mov word [ebp - 0x326], cx
mov word [ebp - 0x322], ax
mov word [ebp - 0x31a], ax
mov eax, 3
mov word [ebp - 0x314], ax
xor eax, eax
mov word [ebp - 0x31e], cx
xor ecx, ecx
cmp word [esi + 0x28], 0x18
movdqu xmmword [ebp - 0x2fc], xmm0
setg al
mov word [ebp - 0x320], dx
movdqu xmm0, xmmword [str.00.2100_00.7100]
mov word [ebp - 0x312], ax
xor eax, eax
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x29c], eax
mov word [ebp - 0xc4], ax
mov eax, dword [str.2.200]
movdqu xmmword [ebp - 0x2e4], xmm0
mov dword [ebp - 0x30c], eax
movdqu xmm0, xmmword [str.00.1400_00.0800]
movzx eax, word [0x5dba08]
push 0x80
push dword [edi + 0x84]
movdqu xmmword [ebp - 0x2cc], xmm0
mov word [ebp - 0x308], ax
lea eax, [ebp - 0x298]
movdqu xmm0, xmmword [str.00.3100_00.3160]
push eax
mov word [ebp - 0x31c], cx
mov dword [ebp - 0x318], ebx
movdqu xmmword [ebp - 0x2b4], xmm0
call fcn.00593bc0
movzx eax, word [0x5dba54]
movq xmm0, qword [str.image_file]
mov word [ebp - 0x210], ax
movzx eax, byte [0x5dba56]
push 0x40
mov byte [ebp - 0x20e], al
lea eax, [ebp - 0x198]
push 0x5db7f0
push eax
movq qword [ebp - 0x218], xmm0
call fcn.00593bc0
movq xmm0, qword [str.user_defined]
add esp, 0x1c
movd xmm1, dword [esi + 0x2c]
movq qword [ebp - 0x104], xmm0
movd xmm0, dword [esi + 0x30]
cvtdq2ps xmm0, xmm0
mov eax, dword [0x5dba60]
mov dword [ebp - 0xfc], eax
movzx eax, byte [0x5dba64]
mov dword [ebp - 0xe4], 0x626772
cvtdq2ps xmm1, xmm1
mov byte [ebp - 0xf8], al
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push str._3.2f
lea eax, [ebp - 0x44]
push eax
call fcn.005933b1
push 8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00593bc0
push 0
call fcn.00594354
add esp, 0x20
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x32c], edx
push 0x14
push eax
call fcn.00598ed2
add esp, 4
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00593bc0
push edi
push dword [ebp - 0x328]
call fcn.0045d590
push edi
push dword [ebp - 0x326]
call fcn.0045d590
push edi
push dword [ebp - 0x324]
call fcn.0045d590
push edi
push dword [ebp - 0x322]
call fcn.0045d590
push edi
push dword [ebp - 0x320]
call fcn.0045d590
push edi
push dword [ebp - 0x31e]
call fcn.0045d590
push edi
push dword [ebp - 0x31c]
call fcn.0045d590
add esp, 0x44
push edi
push dword [ebp - 0x31a]
call fcn.0045d590
push edi
push dword [ebp - 0x318]
call fcn.0045d590
push edi
push dword [ebp - 0x316]
call fcn.0045d590
push edi
push dword [ebp - 0x314]
call fcn.0045d590
push edi
push dword [ebp - 0x312]
call fcn.0045d590
push edi
push dword [ebp - 0x310]
call fcn.0045d590
push edi
push dword [ebp - 0x30e]
call fcn.0045d590
push dword [edi]
lea eax, [ebp - 0x30c]
push ebx
push 0x10
push eax
call fcn.0059628c
add esp, 0x48
test eax, eax
jne 0x4a6fef
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [edi]
lea eax, [ebp - 0x2fc]
push 1
push 0x18
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x2e4]
push 1
push 0x18
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x2cc]
push 1
push 0x18
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x2b4]
push 1
push 0x18
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push edi
push dword [ebp - 0x29c]
call fcn.0045d510
push dword [edi]
lea eax, [ebp - 0x298]
push 1
push 0x80
push eax
call fcn.0059628c
add esp, 0x18
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x218]
push 1
push 0x80
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x198]
push 1
push 0x40
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x158]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x138]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x118]
push 1
push 0x14
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x104]
push 1
push 0x18
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0xec]
push 1
push 8
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0xe4]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push edi
push dword [ebp - 0xc4]
call fcn.0045d590
push dword [edi]
lea eax, [ebp - 0xc2]
push 1
push 0xc
push eax
call fcn.0059628c
add esp, 0x18
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0xb6]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push edi
push 8
call fcn.0045d590
push edi
push 0
call fcn.0045d590
push edi
push 0
call fcn.0045d590
push edi
push 0
call fcn.0045d590
push edi
push 0
call fcn.0045d590
push dword [edi]
lea eax, [ebp - 0x8c]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x38
test eax, eax
je 0x4a6fdc
push dword [edi]
lea eax, [ebp - 0x6c]
push 1
push 0x24
push eax
call fcn.0059628c
add esp, 0x10
test eax, eax
je 0x4a6fdc
push edi
push 0
call fcn.0045d510
mov ecx, dword [ebp - 4]
add esp, 8
mov ax, bx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret