Function at 0x416b10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [edi + 0x10cc07c]
sub esp, 0x448
push ebx
mov ebx, dword [eax + 0xe4]
push ebp
mov ebp, dword [eax + 0xe0]
mov eax, dword [edi + 0x10cc080]
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp ebx, eax
push esi
jg 0x416b59
jl 0x416b47
cmp ebp, ecx
jae 0x416b59
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x416b75
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebp
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov ebp, dword [esp + 0x18]
cmp ebp, ecx
jne 0x416b81
cmp ebx, eax
je 0x416d95
mov edx, dword [0x48ba6c]
sub ecx, ebp
mov dword [esp + 0x20], ecx
mov ecx, dword [0x48cb08]
sbb eax, ebx
push 0x100
shl ecx, 9
mov dword [esp + 0x28], eax
fild qword [esp + 0x24]
mov eax, dword [edi + 0x10cbbb4]
add ecx, 0x48bb08
push ecx
lea esi, [edi + 0x10cbbb4]
fstp qword [esp + 0x48]
push 0xcc
push edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x48cb08]
lea ecx, [eax + 1]
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x416be9
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [edi + 0x1097a10]
shl eax, 9
add eax, 0x48bb08
push eax
push 2
push 0x400
push edx
mov dword [0x48cb08], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
fldz
push ecx
fstp dword [esp]
lea eax, [edi + 0x10969f8]
push eax
mov eax, esi
mov esi, dword [edi + 0x10cc078]
call fcn.00403760
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
lea eax, [edi + 0x10969f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
jne 0x416c62
mov eax, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
jmp 0x416d85
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, ebx
jg 0x416d55
jl 0x416c8f
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x10]
jae 0x416d55
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x416cc7
lea ebx, [edi + 0x10cbc38]
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x10cc078]
push ebp
sub eax, 1
push edx
call fcn.00402df0
fstp dword [esp + esi*4 + 0x50]
add esi, 1
add ebx, 4
cmp esi, dword [esp + 0x2c]
jl 0x416c9d
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x34]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, ebp
sbb ecx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fdiv qword [esp + 0x40]
fmul qword [0x47b738]
call fcn.00442da0
mov esi, eax
cmp esi, dword [esp + 0x30]
je 0x416d2f
mov edx, dword [edi + 0x1097a10]
push esi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], esi
add dword [esp + 0x20], 1
adc ebp, 0
cmp ebp, dword [esp + 0x14]
jl 0x416c8f
jg 0x416d51
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jb 0x416c8f
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push ebx
push ecx
mov ebx, esi
mov ecx, edi
call fcn.00417090
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
mov dword [edi + 0x1097a30], 1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
pop esi
pop ebp
pop ebx
add esp, 0x448
ret