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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1488
call fcn.00424d30
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10cc080]
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
lea eax, [edi + 0x10969f8]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x10cc07c]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp eax, ecx
jg 0x4142e2
jl 0x4142ce
cmp edx, esi
jae 0x4142e2
mov ebp, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
jmp 0x4142fc
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov ebp, ecx
mov edx, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov ecx, eax
cmp edx, esi
jne 0x414308
cmp ebp, ecx
je 0x41479f
sub esi, edx
sbb ecx, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
fild qword [esp + 0x18]
push 0xcc
mov dword [esp + 0x48], 0
fstp qword [esp + 0x8c]
call fcn.00416f80
mov ecx, dword [edi + 0x1097a10]
add esp, 4
push eax
push 2
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x50]
mov ecx, dword [edi + 0x10cc078]
lea ebx, [edi + 0x10cc074]
push ebx
push 0
push 0
push 1
push esi
call fcn.00401c90
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x58], eax
jne 0x4143ad
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 edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 0x10cc078]
mov ecx, dword [eax + 0x2c]
push 0x400
lea edx, [esp + 0x9c]
push 0
push edx
mov dword [esp + 0x34], ecx
call fcn.004238f0
push 0x400
lea eax, [esp + 0x8a8]
push 0
push eax
call fcn.004238f0
xor esi, esi
add esp, 0x18
cmp dword [esp + 0x28], esi
jle 0x414422
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
push esi
push ebp
push ecx
mov ecx, dword [edi + 0x10cc078]
call fcn.004018f0
fstp dword [esp + esi*4 + 0x898]
add esi, 1
cmp esi, dword [esp + 0x28]
jl 0x414400
fldz
mov edx, dword [edi + 0x10cc078]
fst qword [esp + 0x60]
push 0x400
fld dword [edx + 0x4ff0]
lea eax, [esp + 0x49c]
fstp qword [esp + 0x6c]
push 0
push eax
fstp qword [esp + 0x8c]
fld dword [ebx]
fstp qword [esp + 0x7c]
call fcn.004238f0
push 0x400
lea ecx, [esp + 0x10a8]
push 0
push ecx
call fcn.004238f0
push 0x400
lea edx, [esp + 0xcb4]
push 0
push edx
call fcn.004238f0
mov eax, dword [esp + 0x34]
add esp, 0x24
cmp ebp, dword [esp + 0x34]
mov ebx, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jg 0x414754
jl 0x4144b8
cmp eax, dword [esp + 0x30]
jae 0x414754
jmp 0x4144b8
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov edx, ebx
sbb edx, ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
fild qword [esp + 0x78]
fdiv qword [esp + 0x88]
fmul qword [0x43d7d0]
call fcn.00423f00
mov esi, eax
cmp esi, dword [esp + 0x44]
je 0x414501
mov eax, dword [edi + 0x1097a10]
push esi
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x44], esi
xor esi, esi
xor ebp, ebp
cmp dword [esp + 0x28], esi
jle 0x4146c8
lea ecx, [edi + 0x10971f8]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
cmp dword [edx], 0
jne 0x414532
mov eax, dword [edi + 0x10cc078]
cmp dword [eax + 0x30], 1
je 0x4146b6
mov ecx, dword [esp + 0x18]
push esi
push ebx
push ecx
mov ecx, dword [edi + 0x10cc078]
call fcn.004018f0
fstp dword [esp + 0x5c]
fld dword [esp + esi*4 + 0xc98]
fmul st(0), st(0)
fstp dword [esp + 0x48]
fld dword [esp + 0x5c]
fld st(0)
fmul st(0), st(0)
fstp dword [esp + 0x54]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jp 0x414575
fstp st(0)
mov ebx, 1
jmp 0x414585
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x414583
or ebx, 0xffffffff
jmp 0x414585
xor ebx, ebx
cmp ebx, dword [esp + esi*4 + 0x1098]
jle 0x414670
test ebx, ebx
jle 0x414670
mov ecx, dword [esp + esi*4 + 0x498]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fld qword [esp + 0x68]
fmul qword [0x43ea90]
fld qword [esp + 0x70]
fmul qword [0x43ea88]
fdivp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x414670
test ecx, ecx
fld dword [esp + esi*4 + 0xc98]
fabs
fstp dword [esp + 0x2c]
fld st(0)
fabs
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fld dword [esp + 0x2c]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x48]
fmul qword [0x43d8c0]
fmulp st(1)
fdiv dword [esp + 0x2c]
fadd dword [esp + esi*4 + 0x98]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [esp + esi*4 + 0x98]
jle 0x414645
fstp st(1)
fidiv dword [esp + 0x40]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
call fcn.00424de0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + ebp*4 + 0x898]
fld dword [esp + 0x5c]
jmp 0x41464c
fstp dword [esp + ebp*4 + 0x898]
fld dword [esp + 0x54]
mov dword [esp + esi*4 + 0x498], 0
fmul qword [0x43d8c0]
fmul dword [esp + 0x4c]
fdiv dword [esp + 0x2c]
fstp dword [esp + esi*4 + 0x98]
mov eax, dword [esp + esi*4 + 0x498]
test eax, eax
jle 0x414697
fld dword [esp + 0x54]
fadd dword [esp + 0x48]
fmul qword [0x43d8c0]
fadd dword [esp + esi*4 + 0x98]
fstp dword [esp + esi*4 + 0x98]
add eax, 1
fstp dword [esp + esi*4 + 0xc98]
mov dword [esp + esi*4 + 0x1098], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + esi*4 + 0x498], eax
add ebp, 1
add dword [esp + 0x3c], 4
add esi, 1
cmp esi, dword [esp + 0x28]
jl 0x414519
fld qword [esp + 0x60]
fld1
fadd st(1), st(0)
fxch st(1)
fst qword [esp + 0x60]
fdiv qword [esp + 0x68]
fld qword [esp + 0x80]
fld qword [esp + 0x70]
fdivr st(1)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x414722
push 0
faddp st(1)
lea edx, [esp + 0x98]
push edx
mov edx, dword [esp + 0x60]
fstp qword [esp + 0x88]
lea eax, [ebp*4]
push eax
lea ecx, [esp + 0x8a4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x414726
fstp st(0)
fstp st(0)
add dword [esp + 0x18], 1
adc ebx, 0
cmp ebx, dword [esp + 0x34]
mov dword [esp + 0x1c], ebx
jl 0x4144b0
jg 0x41474c
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jb 0x4144b0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x58]
push ebp
push eax
push esi
mov ecx, edi
call fcn.004130e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push ecx
call esi
mov edx, dword [esp + 0x50]
push edx
push 1
mov dword [edi + 0x1097a10], 0
mov eax, dword [0x454174]
push 0x400
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret