Function at 0x4054b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov ebx, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
je 0x4055b0
cmp dword [eax + 0xc], 1
jle 0x4055b0
fld qword [ebx + 0x28]
xor ecx, ecx
mov edi, dword [eax + 0x14]
lea edx, [edi + 0x28]
fld qword [edx]
mov eax, ecx
shl eax, 6
lea eax, [edi + eax]
mov dword [ebp - 0x1c], eax
fucom st(1)
fnstsw ax
sahf
jp 0x405506
nop
je 0x4055bd
inc ecx
add edx, 0x40
cmp ecx, 4
jg 0x405527
fstp st(0)
fld qword [edx]
mov eax, ecx
shl eax, 6
lea eax, [edi + eax]
mov dword [ebp - 0x1c], eax
fucom st(1)
fnstsw ax
sahf
jnp 0x405500
jmp 0x405506
fucomp st(1)
fnstsw ax
sahf
jp 0x405534
je 0x4055bf
xor ecx, ecx
fldz
lea edx, [edi + 0x28]
nop
lea esi, [esi]
fld qword [edx]
fxch st(1)
mov eax, ecx
shl eax, 6
lea eax, [edi + eax]
mov dword [ebp - 0x1c], eax
fucom st(1)
fnstsw ax
fstp st(1)
sahf
ja 0x405561
inc ecx
add edx, 0x40
cmp ecx, 4
jle 0x405540
fstp st(0)
fld qword [ebx + 0x30]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 0xc]
fstp qword [ecx + 0x30]
fld qword [ebx + 0x20]
fxch st(1)
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x10]
fstp qword [ecx + 0x28]
fstp qword [ecx + 0x20]
mov dword [edx + 0x10], eax
mov eax, dword [ebx + 0x18]
mov byte [ecx + 0x3b], 1
mov edx, dword [ebx + 0x1c]
mov dword [ecx + 0x18], eax
movzx eax, byte [ebx + 0x38]
mov dword [ecx + 0x1c], edx
mov byte [ecx + 0x38], al
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
fstp st(0)
fstp st(0)
fld qword [ebx + 0x30]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x1c]
add dword [esi + 0x14], eax
mov eax, dword [ebx + 0xc]
add dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
add dword [esi + 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [esi + 0x18], eax
movzx eax, byte [ebx + 0x38]
fld qword [esi + 0x30]
fxch st(1)
adc dword [esi + 0x1c], edx
mov byte [esi + 0x38], al
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jbe 0x405692
fstp qword [esi + 0x30]
fld qword [ebx + 0x20]
mov edx, dword [ebp - 0x1c]
fld qword [edx + 0x20]
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jbe 0x40568e
fstp qword [edx + 0x20]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x3b]
inc al
mov byte [edx + 0x3b], al
mov ecx, dword [ebp - 0x10]
movsx eax, al
cmp eax, dword [ecx + 0xc]
jne 0x4055b0
cld
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x60]
movzx eax, byte [ebp - 0x14]
mov byte [ecx + 0x3b], al
mov esi, dword [ebp - 0x10]
mov ecx, 0x10
mov edi, dword [esi + 0x10]
mov esi, dword [ebp - 0x1c]
add edi, 0x60
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0xbff00000
mov eax, dword [ecx + 0x10]
mov dword [eax + 0x60], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], 0x10
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp + 0x10], edx
mov esp, ebp
pop ebp
jmp fcn.00405350
fstp st(0)
jmp 0x405618
fstp st(0)
jmp 0x405601