Function at 0x414c10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc48
push ebx
push ebp
mov ebp, dword [esp + 0xc54]
mov eax, dword [ebp + 0x10cc07c]
mov ecx, dword [ebp + 0x10cc080]
mov ebx, dword [eax + 0xe0]
mov edx, dword [ecx + 0xe0]
mov eax, dword [eax + 0xe4]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
push esi
push edi
lea edi, [ebp + 0x10969f8]
mov dword [esp + 0x3c], edi
jg 0x414c6b
jl 0x414c59
cmp ebx, edx
jae 0x414c6b
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x414c87
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
mov ebx, edx
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp ebx, edx
jne 0x414c93
cmp eax, ecx
je 0x414f32
sub edx, ebx
sbb ecx, eax
mov eax, dword [0x44f440]
push 0x100
shl eax, 9
mov dword [esp + 0x28], ecx
mov ecx, dword [0x44e3ac]
add eax, 0x44e440
mov dword [esp + 0x24], edx
fild qword [esp + 0x24]
push eax
push 0xcc
push ecx
fstp qword [esp + 0x58]
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x44f440]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x414ce9
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x44e440
push eax
mov eax, dword [ebp + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x44f440], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x44e3bc]
mov esi, dword [ebp + 0x10cc078]
push 0
lea ecx, [eax + 0x4c9c]
push ecx
add eax, 0x489c
push eax
push 1
push edi
call fcn.00402fb0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x414d7a
mov edx, dword [ebp + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x1097a10], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc48
ret 4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x44e3bc]
lea esi, [eax + 0x489c]
mov ecx, 0x100
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x4c9c]
mov eax, dword [ebp + 0x10cc078]
mov edx, dword [eax + 0x30]
mov ecx, 0x100
lea edi, [esp + 0x458]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x2c]
mov eax, ebx
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jg 0x414ed5
jl 0x414de9
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jae 0x414ed5
xor esi, esi
xor edi, edi
cmp dword [esp + 0x34], esi
jle 0x414e69
lea edx, [ebp + 0x10971f8]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
jne 0x414e0d
cmp dword [esp + 0x38], 1
je 0x414e35
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [ebp + 0x10cc078]
mov eax, esi
call fcn.00402c20
fmul dword [esp + esi*4 + 0x58]
add edi, 1
fadd dword [esp + esi*4 + 0x458]
fstp dword [esp + edi*4 + 0x854]
add dword [esp + 0x28], 4
add esi, 1
cmp esi, dword [esp + 0x34]
jl 0x414dfd
test edi, edi
jle 0x414e69
push 0
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x34]
lea eax, [edi*4]
push eax
lea ecx, [esp + 0x864]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x10]
mov ecx, ebx
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
fild qword [esp + 0x40]
fdiv qword [esp + 0x48]
fmul qword [0x4424c8]
call fcn.00427ae0
mov esi, eax
cmp esi, dword [esp + 0x30]
je 0x414eb3
mov edx, dword [ebp + 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 ebx, 0
cmp ebx, dword [esp + 0x1c]
jl 0x414de9
jg 0x414ed5
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], eax
jb 0x414de9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, ebp
call fcn.00415cd0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push eax
mov dword [ebp + 0x1097a30], 1
call esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x44e420]
push ecx
push 1
push 0x400
push edx
mov dword [ebp + 0x1097a10], 0
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc48
ret 4