Function at 0x414560
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, 0x1490
call fcn.0041d650
mov eax, dword [ebx + 0x10cc07c]
mov ecx, dword [ebx + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebp
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
push edi
lea edi, [ebx + 0x10969f8]
mov dword [esp + 0x5c], edi
jg 0x4145b7
jl 0x4145a5
cmp edx, esi
jae 0x4145b7
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
jmp 0x4145d3
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, esi
mov esi, dword [esp + 0x20]
cmp edx, esi
jne 0x4145df
cmp eax, ecx
je 0x414aa8
sub esi, edx
mov edx, dword [0x43c548]
sbb ecx, eax
mov eax, dword [0x43b4b0]
push pe_nt_image_headers32
shl edx, 9
add edx, 0x43b548
mov dword [esp + 0x38], ecx
push edx
mov dword [esp + 0x38], esi
fild qword [esp + 0x38]
push 0xcc
push eax
mov dword [esp + 0x4c], 0
fstp qword [esp + 0x60]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x414636
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebx + 0x1097a10]
shl eax, 9
add eax, 0x43b548
push eax
push 2
push 0x400
push edx
mov dword [0x43c548], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx + 0x10cc078]
push 0
push 0
push 1
lea ebp, [ebx + 0x10cc074]
push edi
mov eax, ebp
call fcn.004031e0
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 + 0x40], eax
jne 0x4146bc
mov eax, dword [ebx + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x1097a10], 0
pop edi
pop esi
pop ebp
add esp, 0x1490
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx + 0x10cc078]
mov edx, dword [ecx + 0x2c]
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x498]
xor esi, esi
test edx, edx
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
jle 0x414727
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x10cc078]
push edx
push eax
mov eax, esi
call fcn.00402e60
fstp dword [esp + esi*4 + 0x498]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x414700
fld qword [0x433c30]
mov ecx, dword [ebx + 0x10cc078]
mov edx, dword [esp + 0x24]
fstp qword [esp + 0x60]
fld dword [ecx + 0x4ff0]
xor eax, eax
mov ecx, pe_nt_image_headers32
fstp qword [esp + 0x68]
fld qword [0x433c30]
lea edi, [esp + 0x898]
rep stosd dword es:[edi], eax
fstp qword [esp + 0x30]
fld dword [ebp]
fstp qword [esp + 0x70]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x1098]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0xc98]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
cmp eax, edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jg 0x414a5d
jl 0x4147a6
cmp ecx, dword [esp + 0x20]
jae 0x414a5d
fld qword [0x433c28]
fdiv qword [esp + 0x50]
fstp qword [esp + 0x88]
fld qword [0x433c28]
fdiv qword [esp + 0x68]
fstp qword [esp + 0x78]
fld qword [0x433c28]
fdiv qword [esp + 0x70]
fstp qword [esp + 0x90]
jmp 0x4147e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
sub edx, ecx
mov ecx, dword [esp + 0x1c]
sbb ecx, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
fild qword [esp + 0x50]
fmul qword [esp + 0x88]
fmul qword [0x433cc0]
call fcn.0041d6e4
mov esi, eax
cmp esi, dword [esp + 0x3c]
je 0x41482b
mov edx, dword [ebx + 0x1097a10]
push esi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x2c]
xor ebp, ebp
xor edi, edi
xor esi, esi
cmp eax, ebp
jle 0x4149c8
lea eax, [ebx + 0x10971f8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
cmp dword [ecx], ebp
jne 0x41485f
mov edx, dword [ebx + 0x10cc078]
cmp dword [edx + 0x30], 1
je 0x4149b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebx + 0x10cc078]
mov eax, esi
call fcn.00402e60
fld dword [esp + esi*4 + 0xc98]
fld st(0)
fmulp st(1)
fld st(1)
fmul st(2)
fld st(2)
fcomp dword [0x433c88]
fnstsw ax
test ah, 0x41
jne 0x41489b
mov edx, 1
jmp 0x4148b1
fld st(2)
fcomp dword [0x433c88]
fnstsw ax
test ah, 5
jp 0x4148af
or edx, 0xffffffff
jmp 0x4148b1
xor edx, edx
cmp edx, dword [esp + esi*4 + 0x1098]
jle 0x414972
cmp edx, ebp
jle 0x414972
mov ecx, dword [esp + esi*4 + 0x898]
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fld qword [esp + 0x68]
fmul qword [0x433df8]
fld qword [esp + 0x70]
fmul qword [0x433df0]
fdivp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x414972
cmp ecx, ebp
fld dword [esp + esi*4 + 0xc98]
fabs
fld st(3)
fabs
fst dword [esp + 0x48]
fadd st(1)
fld dword [0x433d84]
fdiv st(1)
fstp dword [esp + 0x44]
fstp st(0)
fld st(2)
fmul dword [0x433de8]
fmulp st(1)
fmul dword [esp + 0x44]
fadd dword [esp + esi*4 + 0x98]
fst dword [esp + 0x38]
fstp dword [esp + esi*4 + 0x98]
jle 0x414949
fild dword [esp + 0x4c]
fdivr dword [esp + 0x38]
fsqrt
jmp 0x41494d
fld dword [esp + 0x38]
fstp dword [esp + edi*4 + 0x498]
mov dword [esp + esi*4 + 0x898], ebp
fld dword [0x433de8]
fmul st(1)
fmul dword [esp + 0x44]
fmul dword [esp + 0x48]
fstp dword [esp + esi*4 + 0x98]
mov eax, dword [esp + esi*4 + 0x898]
cmp eax, ebp
jle 0x414995
fadd st(1)
fmul dword [0x433de8]
fadd dword [esp + esi*4 + 0x98]
fstp dword [esp + esi*4 + 0x98]
jmp 0x414997
fstp st(0)
inc eax
fstp st(0)
fstp dword [esp + esi*4 + 0xc98]
mov dword [esp + esi*4 + 0x1098], edx
mov dword [esp + esi*4 + 0x898], eax
inc edi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x28], ecx
jl 0x414847
fld qword [esp + 0x60]
fadd qword [0x433c28]
fstp qword [esp + 0x60]
fld qword [esp + 0x78]
fmul qword [esp + 0x60]
fld qword [esp + 0x90]
fmul qword [esp + 0x30]
fcompp
fnstsw ax
test ah, 0x41
jp 0x414a24
fld qword [esp + 0x30]
push ebp
fadd qword [0x433c28]
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x48]
lea eax, [edi*4]
fstp qword [esp + 0x38]
push eax
lea ecx, [esp + 0x4a4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esi, 1
adc eax, ebp
cmp eax, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
jl 0x4147d8
jg 0x414a55
mov eax, dword [esp + 0x20]
mov ecx, esi
cmp ecx, eax
jb 0x4147d8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00415470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push ecx
call esi
mov edx, dword [esp + 0x5c]
mov eax, dword [0x43b528]
push edx
push 1
push 0x400
push eax
mov dword [ebx + 0x1097a10], 0
call esi
pop edi
pop esi
pop ebp
add esp, 0x1490
ret