Function at 0x416c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x450
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
lea ebx, [edi + 0x10969f8]
push esi
mov dword [esp + 0x38], ebx
jg 0x416c53
jl 0x416c41
cmp ecx, edx
jae 0x416c53
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x416c6f
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov ebp, eax
mov eax, dword [esp + 0x24]
mov edx, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jne 0x416c7b
cmp ebp, eax
je 0x416ee0
sub edx, ecx
mov ecx, dword [0x489b08]
sbb eax, ebp
push 0x100
shl ecx, 9
mov dword [esp + 0x14], edx
mov edx, dword [0x488a6c]
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
mov eax, dword [edi + 0x10cbbb4]
add ecx, 0x488b08
push ecx
lea esi, [edi + 0x10cbbb4]
fstp qword [esp + 0x58]
push 0xcc
push edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x489b08]
lea ecx, [eax + 1]
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x416ce3
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [edi + 0x1097a10]
shl eax, 9
add eax, 0x488b08
push eax
push 2
push 0x400
push edx
mov dword [0x489b08], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
fldz
push ecx
fstp dword [esp]
mov eax, esi
mov esi, dword [edi + 0x10cc078]
push ebx
call fcn.00403750
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x3c], ebx
jne 0x416d65
mov eax, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
jg 0x416e8f
jl 0x416d94
cmp eax, dword [esp + 0x20]
jae 0x416e8f
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x416dfb
lea ebx, [edi + 0x10b7c34]
lea ebp, [edi + 0x10cbc38]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x10cc078]
sub eax, 1
push edx
call fcn.00402de0
fstp dword [esp + 0x34]
cmp dword [ebx], 0
fld dword [esp + 0x34]
je 0x416ddd
push ecx
mov eax, esi
fstp dword [esp]
mov ecx, edi
call fcn.00416850
fstp dword [esp + esi*4 + 0x58]
add esi, 1
add ebx, 0xa0c
add ebp, 4
cmp esi, dword [esp + 0x2c]
jl 0x416da8
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x34]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x64]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x10]
sub edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sbb eax, ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
fild qword [esp + 0x40]
fdiv qword [esp + 0x50]
fmul qword [0x479580]
call fcn.00441ca0
mov esi, eax
cmp esi, dword [esp + 0x30]
je 0x416e61
mov ecx, dword [edi + 0x1097a10]
push esi
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], esi
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jl 0x416d94
jg 0x416e8b
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x10], edx
jb 0x416d94
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, edi
call fcn.00416ef0
push ebx
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 + 0x38]
mov edx, dword [0x488ae4]
push ecx
push 1
push 0x400
push edx
mov dword [edi + 0x1097a10], 0
call esi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret