Function at 0x4150f0
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 0x41514b
jl 0x415139
cmp ebx, edx
jae 0x41514b
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x415167
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 0x415173
cmp eax, ecx
je 0x415412
sub edx, ebx
sbb ecx, eax
mov eax, dword [0x450440]
push 0x100
shl eax, 9
mov dword [esp + 0x28], ecx
mov ecx, dword [0x44f3ac]
add eax, 0x44f440
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 [0x450440]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x4151c9
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x44f440
push eax
mov eax, dword [ebp + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x450440], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x44f3bc]
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 0x41525a
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 [0x44f3bc]
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 0x4153b5
jl 0x4152c9
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jae 0x4153b5
xor esi, esi
xor edi, edi
cmp dword [esp + 0x34], esi
jle 0x415349
lea edx, [ebp + 0x10971f8]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
jne 0x4152ed
cmp dword [esp + 0x38], 1
je 0x415315
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 0x4152dd
test edi, edi
jle 0x415349
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 [0x443538]
call fcn.00427fe0
mov esi, eax
cmp esi, dword [esp + 0x30]
je 0x415393
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 0x4152c9
jg 0x4153b5
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], eax
jb 0x4152c9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, ebp
call fcn.004161b0
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 [0x44f420]
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