Function at 0x416710
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x448
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [eax + 0xe0]
push ebx
push ebp
mov ebp, dword [eax + 0xe4]
mov eax, dword [edi + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp ebp, eax
push esi
lea esi, [edi + 0x10969f8]
mov dword [esp + 0x2c], esi
jg 0x416763
jl 0x416751
cmp ecx, edx
jae 0x416763
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x41677f
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov ebp, eax
mov eax, dword [esp + 0x24]
mov edx, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, edx
jne 0x41678b
cmp ebp, eax
je 0x4169e4
sub edx, ecx
mov ecx, dword [0x48ba6c]
sbb eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x48cb08]
push 0x100
shl eax, 9
add eax, 0x48bb08
mov dword [esp + 0x1c], edx
fild qword [esp + 0x1c]
push eax
push 0xcc
push ecx
fstp qword [esp + 0x50]
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x48cb08]
lea edx, [eax + 1]
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4167e1
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x48bb08
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x48cb08], edx
call dword [sym.imp.USER32.dll_SendMessageW]
fldz
push ecx
fstp dword [esp]
lea ebx, [edi + 0x10cbbb4]
push esi
mov esi, dword [edi + 0x10cc078]
mov eax, ebx
call fcn.00403760
mov ecx, dword [esp + 0x2c]
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
jne 0x41686d
mov edx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
pop esi
pop ebp
pop ebx
add esp, 0x448
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, dword [esp + 0x24]
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
jg 0x416991
jl 0x41689e
cmp eax, dword [esp + 0x20]
jae 0x416991
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x416901
lea esi, [edi + 0x10cbbb8]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x80]
push ebp
push ecx
mov ecx, dword [edi + 0x10cc078]
sub eax, 1
call fcn.00402df0
fimul dword [esi]
mov eax, dword [esi + 0x84]
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 0x10cc078]
push ebp
sub eax, 1
push edx
fstp dword [esp + ebx*4 + 0x58]
call fcn.00402df0
fimul dword [esi + 4]
add ebx, 1
add esi, 8
cmp ebx, dword [esp + 0x28]
fadd dword [esp + ebx*4 + 0x4c]
fstp dword [esp + ebx*4 + 0x4c]
jl 0x4168ac
mov esi, dword [esp + 0x34]
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x30]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x10]
mov eax, ebp
sbb eax, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fild qword [esp + 0x38]
fdiv qword [esp + 0x40]
fmul qword [0x47b738]
call fcn.00442da0
mov ebx, eax
cmp ebx, dword [esp + 0x30]
je 0x416967
mov ecx, dword [edi + 0x1097a10]
push ebx
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], ebx
add dword [esp + 0x18], 1
adc ebp, 0
cmp ebp, dword [esp + 0x24]
jl 0x41689e
jg 0x416989
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x41689e
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ebx, esi
mov ecx, edi
call fcn.00417090
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push eax
mov dword [edi + 0x1097a30], 1
call esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x48bae4]
push ecx
push 1
push 0x400
push edx
mov dword [edi + 0x1097a10], 0
call esi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret