Function at 0x414ac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x450
mov eax, dword [edi + 0x10cc07c]
mov edx, dword [edi + 0x10cc080]
mov ecx, dword [edx + 0xe0]
push ebx
mov ebx, dword [eax + 0xe0]
push ebp
mov ebp, dword [eax + 0xe4]
mov eax, dword [edx + 0xe4]
cmp ebp, eax
push esi
lea esi, [edi + 0x10969f8]
mov dword [esp + 0x34], esi
jg 0x414b13
jl 0x414b01
cmp ebx, ecx
jae 0x414b13
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x414b2f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ebx, ecx
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
jne 0x414b3b
cmp ebp, eax
je 0x414dae
sub ecx, ebx
sbb eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x43c548]
push pe_nt_image_headers32
shl eax, 9
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x1c]
mov ecx, dword [0x43b4b0]
add eax, 0x43b548
push eax
push 0xcc
fstp qword [esp + 0x44]
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x414b91
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x43b548
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x43c548], edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push esi
mov esi, dword [edi + 0x10cc078]
lea eax, [edi + 0x10cbbb4]
call fcn.004037f0
mov ecx, dword [esp + 0x34]
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 + 0x44], esi
jne 0x414c17
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, 0x450
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 0x10cbbb4]
mov dword [esp + 0x2c], eax
cmp ebp, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
jg 0x414d5c
jl 0x414c48
cmp ebx, dword [esp + 0x10]
jae 0x414d5c
fld qword [0x433c28]
fdiv qword [esp + 0x38]
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x2c]
xor ebx, ebx
test eax, eax
jle 0x414cc1
lea esi, [edi + 0x10cbbb8]
jmp 0x414c70
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x80]
push ebp
push ecx
mov ecx, dword [edi + 0x10cc078]
dec eax
call fcn.00402e60
fimul dword [esi]
mov eax, dword [esi + 0x84]
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 0x10cc078]
push ebp
dec eax
push edx
fstp dword [esp + ebx*4 + 0x60]
call fcn.00402e60
fimul dword [esi + 4]
mov eax, dword [esp + 0x2c]
inc ebx
add esi, 8
cmp ebx, eax
fadd dword [esp + ebx*4 + 0x54]
fstp dword [esp + ebx*4 + 0x54]
jl 0x414c70
mov esi, dword [esp + 0x44]
push 0
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x34]
shl eax, 2
push eax
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub edx, ebx
mov eax, ebp
sbb eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fild qword [esp + 0x38]
fmul qword [esp + 0x48]
fmul qword [0x433cc0]
call fcn.0041d6e4
mov ebx, eax
cmp ebx, dword [esp + 0x30]
je 0x414d2a
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
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add edx, 1
adc ebp, 0
cmp ebp, eax
mov dword [esp + 0x18], edx
jl 0x414c56
jg 0x414d54
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], edx
jb 0x414c56
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push ebp
push ebx
push esi
mov ecx, edi
call fcn.00415470
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 + 0x34]
mov edx, dword [0x43b528]
push ecx
push 1
push 0x400
push edx
mov dword [edi + 0x1097a10], 0
call esi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret