Function at 0x415fd0
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 0x41602b
jl 0x416019
cmp ebx, edx
jae 0x41602b
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x416047
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 0x416053
cmp eax, ecx
je 0x4162f2
sub edx, ebx
sbb ecx, eax
mov eax, dword [0x48cb08]
push 0x100
shl eax, 9
mov dword [esp + 0x28], ecx
mov ecx, dword [0x48ba6c]
add eax, 0x48bb08
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 [0x48cb08]
lea edx, [eax + 1]
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4160a9
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x48bb08
push eax
mov eax, dword [ebp + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x48cb08], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x48ba7c]
mov esi, dword [ebp + 0x10cc078]
push 0
lea ecx, [eax + 0x4c9c]
push ecx
add eax, 0x489c
push eax
push 1
push edi
call fcn.00403180
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 0x41613a
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 [0x48ba7c]
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 0x416295
jl 0x4161a9
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jae 0x416295
xor esi, esi
xor edi, edi
cmp dword [esp + 0x34], esi
jle 0x416229
lea edx, [ebp + 0x10971f8]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
jne 0x4161cd
cmp dword [esp + 0x38], 1
je 0x4161f5
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [ebp + 0x10cc078]
mov eax, esi
call fcn.00402df0
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 0x4161bd
test edi, edi
jle 0x416229
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 [0x47b738]
call fcn.00442da0
mov esi, eax
cmp esi, dword [esp + 0x30]
je 0x416273
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 0x4161a9
jg 0x416295
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], eax
jb 0x4161a9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, ebp
call fcn.00417090
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 [0x48bae4]
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