Function at 0x414870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x440
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10cc07c]
mov edx, dword [esi + 0x10cc080]
mov ecx, dword [edx + 0xe0]
push edi
mov edi, dword [eax + 0xe0]
mov ebx, dword [eax + 0xe4]
mov eax, dword [edx + 0xe4]
cmp ebx, eax
jg 0x4148c2
jl 0x4148b0
cmp edi, ecx
jae 0x4148c2
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4148de
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp edi, ecx
jne 0x4148ea
cmp ebx, eax
je 0x414ab7
sub ecx, edi
sbb eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10cbbb4]
mov dword [esp + 0x20], ecx
fild qword [esp + 0x20]
lea ebp, [esi + 0x10cbbb4]
push 0xcc
mov dword [esp + 0x30], 0
fstp qword [esp + 0x34]
mov dword [esp + 0x2c], eax
call fcn.00416e00
mov ecx, dword [esi + 0x1097a10]
add esp, 4
push eax
push 2
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10cc078]
push 0
push ebp
lea ebp, [esi + 0x10969f8]
push ebp
call fcn.004021d0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x3c], ebp
je 0x414a97
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x20], edi
jg 0x414a7c
jl 0x414999
cmp edi, dword [esp + 0x10]
jae 0x414a7c
fld qword [0x4318d8]
fdiv qword [esp + 0x30]
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x4149e1
lea ebp, [esi + 0x10cbc38]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
dec eax
push eax
push ebx
push ecx
mov ecx, dword [esi + 0x10cc078]
call fcn.00401840
fstp dword [esp + edi*4 + 0x50]
mov eax, dword [esp + 0x28]
inc edi
add ebp, 4
cmp edi, eax
jl 0x4149b7
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push 0
lea edx, [esp + 0x50]
push edx
shl eax, 2
push eax
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
sub ecx, eax
mov edx, ebx
sbb edx, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
fmul qword [esp + 0x40]
fmul qword [0x430728]
call fcn.0041bd48
mov edi, eax
cmp edi, dword [esp + 0x2c]
je 0x414a4a
mov eax, dword [esi + 0x1097a10]
push edi
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add edx, 1
adc ebx, 0
cmp ebx, eax
mov dword [esp + 0x20], edx
jl 0x4149a7
jg 0x414a74
mov ecx, dword [esp + 0x10]
mov eax, edx
cmp eax, ecx
jb 0x4149a7
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push ebx
push edi
push ebp
mov ecx, esi
call fcn.00412e60
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1097a30], 1
mov edx, dword [esi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x1097a10], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret