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

Disassembly:
mov eax, 0x47b8
call fcn.00428580
mov eax, dword [0x44aad4]
xor eax, esp
mov dword [esp + 0x47b0], eax
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [edi + 0x10cc080]
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 eax, ecx
lea ebx, [edi + 0x10969f8]
jg 0x413a75
jl 0x413a5f
cmp edx, esi
jae 0x413a75
mov ebp, eax
mov eax, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
jmp 0x413a91
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], edx
mov eax, edx
mov dword [esp + 0x10], esi
mov edx, esi
cmp edx, eax
jne 0x413a9d
cmp ebp, ecx
je 0x41418c
xor esi, esi
sub eax, edx
sbb ecx, ebp
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10cc078]
mov dl, byte [eax + 0x781c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x34]
fild qword [esp + 0x18]
mov eax, dword [0x450440]
push 0x100
shl eax, 9
fstp qword [esp + 0x8c]
fldz
add eax, 0x44f440
push eax
fstp qword [esp + 0x70]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x44f3ac]
push 0xd4
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x1f], dl
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x450440]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x413b15
dec edx
or edx, 0xfffffff8
inc edx
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 9
add eax, 0x44f440
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x450440], edx
call ebp
push str..alf
push ebx
call fcn.0042548d
add esp, 8
test eax, eax
jne 0x413c6c
push str..ALF
push ebx
call fcn.0042548d
add esp, 8
test eax, eax
jne 0x413c6c
push 0x44255c
lea edx, [esp + 0x3c]
push ebx
push edx
mov dword [esp + 0x48], esi
call fcn.004251bd
mov eax, dword [edi + 0x10cc078]
add esp, 0xc
test byte [eax + 0x7818], 8
je 0x413ccd
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 esi
push esi
push 3
push esi
sub ebx, eax
mov eax, dword [edi + 0x10cc078]
push esi
add eax, 0x48
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413c46
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 + 0x20b0]
push 0x2710
push edx
call fcn.0042520d
add esp, 0x10
xor esi, esi
jmp 0x413d2b
push esi
push esi
push esi
mov esi, dword [edi + 0x10cc078]
push 1
push ebx
mov dword [esp + 0x50], 1
call fcn.00402fb0
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 0x413cbb
mov ecx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push ecx
call ebp
jmp 0x414182
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x413da1
cmp dword [edi + 0x1097600], 1
jne 0x413cf5
push str.From_Begin_mks_
push str._16s
lea eax, [esp + 0x20b0]
push 0x2710
push eax
call fcn.0042520d
add esp, 0x10
cmp dword [edi + 0x1097600], esi
jne 0x413d2b
push str.mks
push str.UnixSecond
push str.Time
push str.Date
push str._7s__8s__10s___7s
lea ecx, [esp + 0x20bc]
push 0x2710
push ecx
call fcn.0042520d
add esp, 0x1c
mov edx, dword [edi + 0x10cc078]
cmp dword [edx + 0x2c], 0
jle 0x413d87
lea ebx, [edi + 0x10971f8]
lea ecx, [ecx]
cmp dword [ebx], 0
je 0x413d76
lea eax, [esp + 0x20a8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413d50
lea ecx, [esi + 1]
push ecx
sub eax, edx
push str.____Chan__04d
lea edx, [esp + eax + 0x20b0]
push 0x10
push edx
call fcn.0042520d
add esp, 0x10
mov eax, dword [edi + 0x10cc078]
add esi, 1
add ebx, 4
cmp esi, dword [eax + 0x2c]
jl 0x413d40
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20a8]
push ecx
push 0x441fd4
push edx
call fcn.0042451a
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 0x414130
jl 0x413dcb
mov ecx, ebx
cmp ecx, dword [esp + 0x28]
jae 0x414130
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 [0x443538]
call fcn.00427fe0
mov esi, eax
cmp esi, dword [esp + 0x48]
je 0x413e22
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 0x41409a
cmp dword [edi + 0x1097600], 1
jne 0x413e86
mov edx, dword [edi + 0x10cc078]
fld dword [edx + 0x4ff0]
fdivr qword [0x443508]
fmulp st(1)
fld st(0)
call fcn.00428016
push 0
push 0xa
push edx
push eax
call fcn.00432d00
fdiv qword [0x443550]
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.0042520d
add esp, 0x1c
jmp 0x413e88
fstp st(0)
cmp dword [edi + 0x1097600], 0
jne 0x413fa7
mov eax, dword [edi + 0x10cc078]
test byte [eax + 0x7818], 8
fld dword [eax + 0x4ff0]
je 0x413f01
fdivr qword [0x443508]
fild qword [esp + 0x18]
fmulp st(1)
fdiv qword [0x443628]
fld qword [esp + 0x68]
fmul qword [0x443538]
faddp st(1)
call fcn.00428016
push 0
push 0x64
push edx
push eax
call fcn.004377b0
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.0042520d
add esp, 0x14
jmp 0x413fa3
fdivr qword [0x443570]
call fcn.00428016
push ebp
push ebx
push edx
push eax
call fcn.00428090
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.00401180
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.0042520d
add esp, 0x2c
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 0x10cc078]
xor esi, esi
cmp dword [ecx + 0x2c], esi
jle 0x41407e
lea edx, [edi + 0x10971f8]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
je 0x414067
lea eax, [esp + 0xa8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413fe0
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.00402c20
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
sub esp, 0xc
fst qword [esp + 4]
fstp dword [esp]
call fcn.004105b0
push eax
lea edx, [esp + 0x10b4]
push 0x1000
push edx
call fcn.0042520d
add esp, 0x14
lea eax, [esp + 0x10a8]
push 0x2e
push eax
call fcn.00425580
add esp, 8
test eax, eax
je 0x41404b
mov byte [eax], 0x2c
lea ecx, [esp + 0x10a8]
push ecx
push str._12s
push 0xd
push ebx
call fcn.0042520d
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 0x413fc2
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xa8]
push eax
push 0x441fd4
push ecx
call fcn.00424669
add esp, 0xc
jmp 0x41410c
mov edx, dword [edi + 0x10cc078]
fstp st(0)
xor esi, esi
cmp dword [edx + 0x2c], esi
jle 0x41410c
lea esp, [esp]
cmp byte [esp + 0xf], 0
je 0x4140cf
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 0x4140fe
mov ecx, dword [edi + 0x10cc078]
push ebp
push ebx
mov eax, esi
call fcn.00402c20
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 0x4140b0
add ebx, 1
adc ebp, 0
cmp ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
jl 0x413dcb
jg 0x414130
cmp ebx, dword [esp + 0x28]
jb 0x413dcb
cmp dword [esp + 0x3c], 0
je 0x414155
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push edx
push eax
mov ecx, edi
call fcn.004161b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414162
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042480a
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 + 0x47bc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423cab
add esp, 0x47b8
ret