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

Disassembly:
mov eax, 0x30a8
call fcn.00443630
mov eax, dword [0x487004]
xor eax, esp
mov dword [esp + 0x30a0], eax
mov eax, dword [edi + 0x10cc080]
mov ecx, dword [edi + 0x10cc07c]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebx
push ebp
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp ecx, eax
lea ebx, [edi + 0x10969f8]
jg 0x414957
jl 0x41493f
cmp esi, edx
jae 0x414957
mov ebp, esi
mov esi, ecx
mov ecx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jmp 0x414973
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
mov ecx, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov ebp, edx
cmp ebp, ecx
jne 0x41497f
cmp esi, eax
je 0x41506c
xor edx, edx
sub ecx, ebp
sbb eax, esi
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10cc078]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x34]
fild qword [esp + 0x18]
mov dword [esp + 0x48], edx
mov dword [esp + 0x34], edx
mov dl, byte [eax + 0x781c]
fstp qword [esp + 0x88]
mov eax, dword [0x48cb08]
fldz
push 0x100
fstp qword [esp + 0x6c]
shl eax, 9
add eax, 0x48bb08
push eax
mov dword [esp + 0x64], ecx
mov ecx, dword [0x48ba6c]
push 0xd4
push ecx
mov byte [esp + 0x1f], dl
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x48cb08]
lea edx, [eax + 1]
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4149f7
dec edx
or edx, 0xfffffff8
inc edx
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 9
add eax, 0x48bb08
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x48cb08], edx
call ebp
push str..alf
push ebx
call fcn.0043e5ed
add esp, 8
test eax, eax
jne 0x414b50
push str..ALF
push ebx
call fcn.0043e5ed
add esp, 8
test eax, eax
jne 0x414b50
push 0x47a6dc
lea edx, [esp + 0x3c]
push ebx
push edx
mov dword [esp + 0x48], eax
call fcn.0043e0bc
mov eax, dword [edi + 0x10cc078]
add esp, 0xc
test byte [eax + 0x7818], 8
je 0x414bb4
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x54]
movzx ebx, word [esp + 0x78]
push 0
push 0
push 3
push 0
sub ebx, eax
mov eax, dword [edi + 0x10cc078]
push 0
add eax, 0x48
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414b2c
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x54]
add eax, ebx
cdq
mov ecx, 0x18
idiv ecx
movzx ecx, word [esp + 0x56]
push esi
mov eax, edx
shl eax, 4
sub eax, edx
lea eax, [ecx + eax*4]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, word [esp + 0x5c]
lea ecx, [eax + edx*4]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fstp qword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Frequency_hZ_
push str._16s
lea edx, [esp + 0x10b0]
push 0x2000
push edx
call fcn.0043e1a1
add esp, 0x10
jmp 0x414c13
mov esi, dword [edi + 0x10cc078]
push 0
push 0
push 0
push 1
push ebx
mov dword [esp + 0x50], 1
call fcn.00403180
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 + 0x34], eax
jne 0x414ba2
mov ecx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push ecx
call ebp
jmp 0x415062
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x414c86
cmp dword [edi + 0x1097600], 1
jne 0x414bdc
push str.From_Begin_mks_
push str._16s
lea eax, [esp + 0x10b0]
push 0x2000
push eax
call fcn.0043e1a1
add esp, 0x10
cmp dword [edi + 0x1097600], 0
jne 0x414c13
push str.mks
push str.UnixSecond
push str.Time
push str.Date
push str._7s__8s__10s___7s
lea ecx, [esp + 0x10bc]
push 0x2000
push ecx
call fcn.0043e1a1
add esp, 0x1c
mov edx, dword [edi + 0x10cc078]
xor esi, esi
cmp dword [edx + 0x2c], esi
jle 0x414c6c
lea ebx, [edi + 0x10971f8]
cmp dword [ebx], 0
je 0x414c5b
lea eax, [esp + 0x10a8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414c35
lea ecx, [esi + 1]
push ecx
sub eax, edx
push str.____Chan__04d
lea edx, [esp + eax + 0x10b0]
push 0x10
push edx
call fcn.0043e1a1
add esp, 0x10
mov eax, dword [edi + 0x10cc078]
add esi, 1
add ebx, 4
cmp esi, dword [eax + 0x2c]
jl 0x414c26
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x10a8]
push ecx
push 0x47a150
push edx
call fcn.0043d241
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, ebp
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
jg 0x415010
jl 0x414cb0
mov ecx, ebx
cmp ecx, dword [esp + 0x28]
jae 0x415010
mov edx, ebx
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 + 0x40]
fld qword [esp + 0x88]
fdivr st(1)
fmul qword [0x47b738]
call fcn.00442da0
mov esi, eax
cmp esi, dword [esp + 0x48]
je 0x414d07
mov ecx, dword [edi + 0x1097a10]
fstp st(0)
push esi
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
fld qword [esp + 0x40]
mov dword [esp + 0x48], esi
cmp dword [esp + 0x3c], 0
jne 0x414f7a
cmp dword [edi + 0x1097600], 1
jne 0x414d6b
mov edx, dword [edi + 0x10cc078]
fld dword [edx + 0x4ff0]
fdivr qword [0x47b708]
fmulp st(1)
fld st(0)
call fcn.00442dd6
push 0
push 0xa
push edx
push eax
call fcn.004561b0
fdiv qword [0x47b750]
push edx
push eax
sub esp, 8
lea eax, [esp + 0xb8]
fstp qword [esp]
push str._14.0lf__1d
push 0x1000
push eax
call fcn.0043e1a1
add esp, 0x1c
jmp 0x414d6d
fstp st(0)
cmp dword [edi + 0x1097600], 0
jne 0x414e8c
mov eax, dword [edi + 0x10cc078]
test byte [eax + 0x7818], 8
fld dword [eax + 0x4ff0]
je 0x414de6
fdivr qword [0x47b708]
fild qword [esp + 0x18]
fmulp st(1)
fdiv qword [0x47b830]
fld qword [esp + 0x68]
fmul qword [0x47b738]
faddp st(1)
call fcn.00442dd6
push 0
push 0x64
push edx
push eax
call fcn.00463ad0
push ecx
push eax
push str._13d___02d
lea ecx, [esp + 0xb4]
push 0x1000
mov dword [esp + 0x54], ebx
push ecx
mov dword [esp + 0x58], edx
call fcn.0043e1a1
add esp, 0x14
jmp 0x414e88
fdivr qword [0x47b770]
call fcn.00442dd6
push ebp
push ebx
push edx
push eax
call fcn.00442e60
mov ecx, dword [edi + 0x1095eb8]
sub ecx, eax
mov eax, dword [edi + 0x1095ebc]
sbb eax, edx
push eax
mov edx, eax
mov dword [esp + 0x54], eax
push ecx
lea eax, [esp + 0x68]
push eax
sar edx, 0x1f
mov dword [esp + 0x58], ecx
call fcn.004012d0
lea esi, [edi + 0x1095ec8]
push esi
lea ecx, [esp + 0x50]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [esp + 0x60]
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 + 0xcc]
push 0x1000
push eax
call fcn.0043e1a1
add esp, 0x2c
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 0x10cc078]
xor esi, esi
cmp dword [ecx + 0x2c], esi
jle 0x414f5e
lea edx, [edi + 0x10971f8]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
je 0x414f47
lea eax, [esp + 0xa8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414ec0
mov ecx, dword [esp + 0x18]
sub eax, edx
push ebp
lea ebx, [esp + eax + 0xac]
push ecx
mov ecx, dword [edi + 0x10cc078]
mov eax, esi
call fcn.00402df0
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
sub esp, 0xc
fst qword [esp + 4]
fstp dword [esp]
call fcn.004113d0
push eax
lea edx, [esp + 0x10b4]
push 0x1000
push edx
call fcn.0043e1a1
add esp, 0x14
lea eax, [esp + 0x10a8]
push 0x2e
push eax
call fcn.0043e6e0
add esp, 8
test eax, eax
je 0x414f2b
mov byte [eax], 0x2c
lea ecx, [esp + 0x10a8]
push ecx
push str._12s
push 0xd
push ebx
call fcn.0043e1a1
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [edi + 0x10cc078]
add dword [esp + 0x24], 4
add esi, 1
cmp esi, dword [edx + 0x2c]
jl 0x414ea7
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xa8]
push eax
push 0x47a150
push ecx
call fcn.0043d3c4
add esp, 0xc
jmp 0x414fec
mov edx, dword [edi + 0x10cc078]
fstp st(0)
xor esi, esi
cmp dword [edx + 0x2c], esi
jle 0x414fec
lea esp, [esp]
cmp byte [esp + 0xf], 0
je 0x414faf
mov eax, esi
cdq
idiv dword [esp + 0x5c]
mov edx, 1
mov ecx, eax
mov al, byte [esp + 0xf]
shl edx, cl
test al, dl
je 0x414fde
mov ecx, dword [edi + 0x10cc078]
push ebp
push ebx
mov eax, esi
call fcn.00402df0
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x88]
push ecx
push 4
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 0x10cc078]
add esi, 1
cmp esi, dword [ecx + 0x2c]
jl 0x414f90
add ebx, 1
adc ebp, 0
cmp ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
jl 0x414cb0
jg 0x415010
cmp ebx, dword [esp + 0x28]
jb 0x414cb0
cmp dword [esp + 0x3c], 0
je 0x415035
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push edx
push eax
mov ecx, edi
call fcn.00417090
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415042
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043d60c
add esp, 4
mov edx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
mov dword [edi + 0x1097a30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
mov ecx, dword [esp + 0x30ac]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c4a7
add esp, 0x30a8
ret