Function at 0x4152e0
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 0x415333
jl 0x415321
cmp ecx, edx
jae 0x415333
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x41534f
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 0x41535b
cmp ebp, eax
je 0x4155b4
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 0x4153b1
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.00403610
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 0x41543d
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 0x415561
jl 0x41546e
cmp eax, dword [esp + 0x20]
jae 0x415561
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x4154d1
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.00402c90
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.00402c90
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 0x41547c
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 [0x4434c8]
call fcn.004278f0
mov ebx, eax
cmp ebx, dword [esp + 0x30]
je 0x415537
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 0x41546e
jg 0x415559
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x41546e
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ebx, esi
mov ecx, edi
call fcn.00415c60
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