Function at 0x415830
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 0x415883
jl 0x415871
cmp ecx, edx
jae 0x415883
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x41589f
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 0x4158ab
cmp ebp, eax
je 0x415b04
sub edx, ecx
mov ecx, dword [0x44f3ac]
sbb eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x450440]
push 0x100
shl eax, 9
add eax, 0x44f440
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 [0x450440]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x415901
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x44f440
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x450440], 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.00403590
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 0x41598d
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 0x415ab1
jl 0x4159be
cmp eax, dword [esp + 0x20]
jae 0x415ab1
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x415a21
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.00402c20
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.00402c20
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 0x4159cc
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 [0x443538]
call fcn.00427fe0
mov ebx, eax
cmp ebx, dword [esp + 0x30]
je 0x415a87
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 0x4159be
jg 0x415aa9
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x4159be
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ebx, esi
mov ecx, edi
call fcn.004161b0
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 [0x44f420]
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