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

Disassembly:
mov eax, 0x2080
call fcn.00442530
mov eax, dword [0x484004]
xor eax, esp
mov dword [esp + 0x2078], eax
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [edi + 0x10cc080]
mov edx, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
push ebx
push ebp
mov ebp, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp eax, ecx
push esi
lea ebx, [edi + 0x10969f8]
jg 0x414801
jl 0x4147ef
cmp ebp, edx
jae 0x414801
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x41481d
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, ebp
mov ebp, dword [esp + 0x10]
cmp ebp, edx
jne 0x414829
cmp eax, ecx
je 0x414ed5
xor esi, esi
sub edx, ebp
sbb ecx, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
fild qword [esp + 0x58]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], esi
fstp qword [esp + 0x78]
call fcn.00401020
mov eax, dword [edi + 0x10cc078]
mov esi, dword [0x488ae8]
mov ecx, dword [eax + 0x34]
mov dl, byte [eax + 0x781c]
push 0x477f8c
push 0x477f80
push esi
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x1b], dl
call fcn.0043be45
mov eax, dword [esi]
add esp, 0xc
push ebp
push ebp
push str._int_xL
push str._s_d__x__n
push eax
call fcn.0043c1c1
mov ecx, dword [esi]
add esp, 0x14
push ecx
call fcn.0043c58c
fld qword [edi + 0x83568]
mov esi, dword [0x488ae8]
fstp qword [esp + 0x44]
add esp, 4
push 0x477f8c
push 0x477f80
push esi
call fcn.0043be45
fld qword [esp + 0x4c]
mov edx, dword [esi]
fstp qword [esp + 4]
add esp, 4
push str.getleftT__
push str._s_lf_n
push edx
call fcn.0043c1c1
mov eax, dword [esi]
add esp, 0x14
push eax
call fcn.0043c58c
mov ecx, dword [0x489b08]
mov edx, dword [0x488a6c]
add esp, 4
push 0x100
shl ecx, 9
add ecx, 0x488b08
push ecx
push 0xd4
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x489b08]
lea ecx, [eax + 1]
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x414925
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [edi + 0x1097a10]
shl eax, 9
add eax, 0x488b08
push eax
push 2
push 0x400
push edx
mov dword [0x489b08], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push str..alf
push ebx
call fcn.0043d56d
add esp, 8
test eax, eax
jne 0x4149bc
push str..ALF
push ebx
call fcn.0043d56d
add esp, 8
test eax, eax
jne 0x4149bc
push 0x478518
lea ecx, [esp + 0x24]
push ebx
xor esi, esi
push ecx
mov dword [esp + 0x38], esi
call fcn.0043d039
mov edx, dword [edi + 0x10cc078]
add esp, 0xc
test byte [edx + 0x7818], 8
je 0x414a1e
push str.Frequency_hZ_
push str._16s
lea eax, [esp + 0x88]
push 0x1000
push eax
call fcn.0043d11e
add esp, 0x10
jmp 0x414a7c
mov esi, dword [edi + 0x10cc078]
push 0
push 0
push 0
push 1
push ebx
mov dword [esp + 0x40], 1
call fcn.00403170
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x414a0c
mov eax, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
jmp 0x414ec5
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x414af1
cmp dword [edi + 0x1097600], 1
jne 0x414a46
push str.From_Begin_mks_
push str._16s
lea ecx, [esp + 0x88]
push 0x1000
push ecx
call fcn.0043d11e
add esp, 0x10
cmp dword [edi + 0x1097600], esi
jne 0x414a7c
push str.mks
push str.UnixSecond
push str.Time
push str.Date
push str._7s__8s__10s___7s
lea edx, [esp + 0x94]
push 0x1000
push edx
call fcn.0043d11e
add esp, 0x1c
mov eax, dword [edi + 0x10cc078]
cmp dword [eax + 0x2c], esi
jle 0x414ad7
lea ebx, [edi + 0x10971f8]
cmp dword [ebx], 0
je 0x414ac6
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414aa0
lea ecx, [esi + 1]
push ecx
sub eax, edx
push str.____Chan__04d
lea edx, [esp + eax + 0x88]
push 0x10
push edx
call fcn.0043d11e
add esp, 0x10
mov eax, dword [edi + 0x10cc078]
add esi, 1
add ebx, 4
cmp esi, dword [eax + 0x2c]
jl 0x414a8d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x80]
push ecx
push 0x477f90
push edx
call fcn.0043c1c1
add esp, 0xc
mov esi, ebp
mov ebp, dword [esp + 0x14]
mov eax, ebp
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x40], esi
jg 0x414e79
jl 0x414b17
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jae 0x414e79
mov edx, esi
sub edx, dword [esp + 0x10]
mov eax, ebp
sbb eax, dword [esp + 0x14]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
fild qword [esp + 0x70]
fst qword [esp + 0x30]
fld qword [esp + 0x78]
fdivr st(1)
fmul qword [0x479580]
call fcn.00441ca0
mov ebx, eax
cmp ebx, dword [esp + 0x3c]
je 0x414b6b
mov ecx, dword [edi + 0x1097a10]
fstp st(0)
push ebx
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
fld qword [esp + 0x30]
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x2c], 0
jne 0x414dea
cmp dword [edi + 0x1097600], 1
jne 0x414bcf
mov edx, dword [edi + 0x10cc078]
fld dword [edx + 0x4ff0]
fdivr qword [0x479550]
fmulp st(1)
fld st(0)
call fcn.00441cd6
push 0
push 0xa
push edx
push eax
call fcn.00454c00
fdiv qword [0x479598]
push edx
push eax
sub esp, 8
lea eax, [esp + 0x90]
fstp qword [esp]
push str._14.0lf__1d
push 0x1000
push eax
call fcn.0043d11e
add esp, 0x1c
jmp 0x414bd1
fstp st(0)
cmp dword [edi + 0x1097600], 0
jne 0x414cf8
mov eax, dword [edi + 0x10cc078]
test byte [eax + 0x7818], 8
fld dword [eax + 0x4ff0]
je 0x414c52
fdivr qword [0x479550]
mov ecx, esi
add ecx, dword [esp + 0x10]
mov edx, ebp
adc edx, dword [esp + 0x14]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
fild qword [esp + 0x60]
fmulp st(1)
fdiv qword [0x479678]
call fcn.00441cd6
push 0
push 0x64
push edx
push eax
call fcn.00462470
push ecx
push eax
push str._13d___02d
lea eax, [esp + 0x8c]
push 0x1000
mov dword [esp + 0x44], ebx
push eax
mov dword [esp + 0x48], edx
call fcn.0043d11e
add esp, 0x14
jmp 0x414cf8
fdivr qword [0x4795b8]
call fcn.00441cd6
push ebp
push esi
push edx
push eax
call fcn.00441d60
mov ecx, dword [edi + 0x1095eb8]
sub ecx, eax
mov eax, dword [edi + 0x1095ebc]
sbb eax, edx
push eax
mov edx, eax
mov dword [esp + 0x70], eax
push ecx
lea eax, [esp + 0x54]
push eax
sar edx, 0x1f
mov dword [esp + 0x74], ecx
call fcn.004012c0
lea esi, [edi + 0x1095ec8]
push esi
lea ecx, [esp + 0x6c]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [esp + 0x4c]
movzx eax, word [edi + 0x1095ed4]
movzx ecx, word [edi + 0x1095ed2]
push edx
movzx edx, word [edi + 0x1095ed0]
push ebx
push eax
movzx eax, word [esi]
push ecx
movzx ecx, word [edi + 0x1095eca]
push edx
movzx edx, word [edi + 0x1095ece]
sub eax, 0x7d0
push eax
push ecx
push edx
push str._02d._02d._02d__2d:_02d:_02d__10d__6d
lea eax, [esp + 0xa4]
push 0x1000
push eax
call fcn.0043d11e
mov esi, dword [esp + 0x6c]
add esp, 0x2c
mov ecx, dword [edi + 0x10cc078]
xor ebx, ebx
cmp dword [ecx + 0x2c], ebx
jle 0x414dce
lea edx, [edi + 0x10971f8]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
je 0x414db7
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414d30
sub eax, edx
lea ecx, [esp + eax + 0x80]
push ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x10cc078]
push esi
mov eax, ebx
call fcn.00402de0
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
sub esp, 0xc
fst qword [esp + 4]
fstp dword [esp]
call fcn.00411270
push eax
lea edx, [esp + 0x108c]
push 0x1000
push edx
call fcn.0043d11e
add esp, 0x14
lea eax, [esp + 0x1080]
push 0x2e
push eax
call fcn.0043d660
add esp, 8
test eax, eax
je 0x414d9b
mov byte [eax], 0x2c
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1080]
push ecx
push str._12s
push 0xd
push edx
call fcn.0043d11e
add esp, 0x10
mov eax, dword [edi + 0x10cc078]
add dword [esp + 0x24], 4
add ebx, 1
cmp ebx, dword [eax + 0x2c]
jl 0x414d13
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x80]
push ecx
push 0x477f90
push edx
call fcn.0043c344
add esp, 0xc
jmp 0x414e59
mov eax, dword [edi + 0x10cc078]
fstp st(0)
xor ebx, ebx
cmp dword [eax + 0x2c], ebx
jle 0x414e59
lea esp, [esp]
cmp byte [esp + 0xf], 0
je 0x414e1f
mov eax, ebx
cdq
idiv dword [esp + 0x50]
mov edx, 1
mov ecx, eax
mov al, byte [esp + 0xf]
shl edx, cl
test al, dl
je 0x414e4b
mov ecx, dword [edi + 0x10cc078]
push ebp
push esi
mov eax, ebx
call fcn.00402de0
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x5c]
push ecx
push 4
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 0x10cc078]
add ebx, 1
cmp ebx, dword [ecx + 0x2c]
jl 0x414e00
add esi, 1
adc ebp, 0
cmp ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], esi
jl 0x414b17
jg 0x414e79
cmp esi, dword [esp + 0x18]
jb 0x414b17
cmp dword [esp + 0x2c], 0
je 0x414e9e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.00416ef0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414eab
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043c58c
add esp, 4
mov edx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
mov dword [edi + 0x1097a30], 1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
mov ecx, dword [esp + 0x2084]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b423
add esp, 0x2080
ret