Function at 0x408f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4443e0
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x258]
push ebx
mov dword [esi + 0x2b4], ebx
mov dword [edi], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x408fc4
push ebx
push ebx
push 0x45a0d8
jmp 0x409380
push edi
push 0x4491bc
push 7
push ebx
push 0x4495fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x409379
mov dword [esi + 0x26c], ebx
call fcn.0043e97d
mov eax, dword [eax + 4]
push 0x13
push str.VoiceFormat
push str.Speech
mov ecx, eax
call fcn.0043e52d
mov dword [esi + 0x268], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 0x32
push str.VoiceVolume
push str.Speech
mov ecx, eax
call fcn.0043e52d
mov dword [esi + 0x260], eax
mov word [esi + 0x274], ax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 0x32
push str.VoiceRate
push str.Speech
mov ecx, eax
call fcn.0043e52d
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
shl ecx, 2
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx - 0xa]
mov dword [esi + 0x264], eax
mov dword [esi + 0x278], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 1
push str.SpeechTitle
push str.Speech
mov ecx, eax
call fcn.0043e52d
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x294], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 1
push str.SpeechAuthor
push str.Speech
mov ecx, eax
call fcn.0043e52d
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x280], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 1
push str.SpeechContent
push str.Speech
mov ecx, eax
call fcn.0043e52d
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x288], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push ebx
push str.SpeechNote
push str.Speech
mov ecx, eax
call fcn.0043e52d
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x28c], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 1
push str.SpeechTranslate
push str.Speech
mov ecx, eax
call fcn.0043e52d
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x298], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 1
push str.SpeechComment
push str.Speech
mov ecx, eax
call fcn.0043e52d
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x284], eax
call fcn.0043e97d
mov eax, dword [eax + 4]
push 1
push str.SpeechOnePage
push str.Speech
mov ecx, eax
call fcn.0043e52d
mov cx, word [esi + 0x274]
mov dword [esi + 0x290], eax
mov eax, dword [edi]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x78]
mov eax, dword [edi]
mov ecx, dword [esi + 0x278]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x70]
lea edx, [esp + 0x20]
push 1
push edx
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftSpeechAudioOutput
call fcn.00409440
add esp, 0xc
cmp eax, ebx
jl 0x4091d3
mov eax, dword [esp + 0x20]
lea edx, [esi + 0x25c]
push edx
push 0x459fc8
mov ecx, dword [eax]
push 7
push ebx
push eax
call dword [ecx + 0x48]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push ebx
push edx
push 0x459f5c
mov byte [esp + 0x54], 2
call fcn.004093a0
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
jl 0x409219
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x48]
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x48], 1
cmp eax, ebx
je 0x40922c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebp, ebx
jl 0x409282
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebp, eax
cmp ebp, ebx
jl 0x409282
mov eax, dword [esp + 0x20]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x20], eax
je 0x409282
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409266
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebp, ebx
jl 0x409282
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ebx
push ecx
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0xc]
mov ebp, eax
cmp ebp, ebx
jge 0x409245
mov edx, dword [esi + 0x268]
mov eax, dword [0x44f1b8]
mov ecx, dword [0x44f1bc]
mov dword [esp + 0x2c], eax
mov ebp, dword [edx*4 + 0x447d40]
mov edx, dword [0x44f1c0]
mov eax, dword [0x44f1c4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
push ebx
mov byte [esp + 0x4c], 3
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x2c]
push ecx
push edx
push ebp
call fcn.00408a20
mov eax, dword [esi + 0x25c]
add esp, 0xc
cmp eax, ebx
pop ebp
je 0x409303
mov edx, dword [esp + 0x38]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x2c]
push edx
push eax
call dword [ecx + 0x40]
mov eax, dword [edi]
mov ecx, dword [esi + 0x25c]
push ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x34]
mov eax, dword [edi]
cmp eax, ebx
je 0x409314
mov ecx, dword [eax]
lea edx, [esp + 0xe]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, dword [edi]
cmp edi, ebx
je 0x409325
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [eax + 0x74]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x2b4], 1
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x44], bl
cmp eax, ebx
je 0x40934c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
cmp eax, ebx
je 0x409362
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
push ebx
push ebx
push 0x459f44
call fcn.004334e1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret