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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5368
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0x10]
sub eax, 1
jne 0x40ce8c
lea ecx, [esi + 4]
call fcn.0040ec70
xor ebx, ebx
mov dword [esi + 0x20], ebx
jmp 0x40ce8e
xor ebx, ebx
mov dword [esp + 0x60], fcn.004d1df2
mov dword [esp + 0x64], fcn.004d2a0a
mov dword [esp + 0x68], fcn.004d1d15
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 0x8000
mov dword [esp + 0x5c], vtable.t_heap.0
mov dword [esp + 0x74], ebx
mov byte [esp + 0x78], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x88], ebx
cmp byte [eax + 0x11c], 0
je 0x40cedb
add eax, 0xc
jmp 0x40cede
mov eax, dword [eax + 8]
mov edi, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [esp + 0x60]
call fcn.0041adb0
test al, al
jne 0x40cf59
mov ecx, edi
call fcn.0040fa50
push 0x52a0bc
push 0x52a3bc
mov edx, eax
call fcn.004114a0
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x74]
add esp, 8
mov dword [esp + 0x5c], vtable.allocator_unsigned_char__class_TAllocDefault_.0
cmp eax, ebx
je 0x40cf3f
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x70], ecx
call dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
jne 0x40cf28
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x74]
cmp eax, ebx
jne 0x40cfd7
xor esi, esi
mov dword [esp + 0x14], ebx
cmp esi, ebx
jne 0x40d042
mov ecx, dword [ebp + 8]
call fcn.0040fa50
push 0x52a0cc
push 0x52a3bc
mov edx, eax
call fcn.004114a0
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x74]
add esp, 8
mov dword [esp + 0x5c], vtable.allocator_unsigned_char__class_TAllocDefault_.0
cmp eax, ebx
je 0x40cfbd
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x70], ecx
call dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
jne 0x40cfa6
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x20]
mov dword [esp + 0x24], str.Setting
call fcn.0041ba20
cmp eax, ebx
je 0x40d000
mov esi, dword [eax + 4]
jmp 0x40d002
xor esi, esi
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x40cf63
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edi, [esp + 0x20]
mov dword [esp + 0x24], 0x52a098
call fcn.0041ba20
cmp eax, ebx
je 0x40cf63
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
jmp 0x40cf67
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edi, [esp + 0x30]
mov eax, esi
mov dword [esp + 0x24], str.LimitWordCand
call fcn.0041ba20
cmp eax, ebx
je 0x40d06d
cmp dword [eax + 4], ebx
jne 0x40d0a0
push esi
mov eax, str.MaxWordCand
call fcn.0041ad20
cmp eax, ebx
je 0x40d090
push eax
call fcn.004d17dd
add esp, 4
test eax, eax
jle 0x40d090
push 0x51a914
jmp 0x40d095
push 0x52a0f8
push str.LimitWordCand
push esi
call fcn.0041a850
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], ebx
push ecx
lea edi, [esp + 0x34]
mov eax, esi
or ebx, 0xffffffff
mov dword [esp + 0x28], str.LearnNewWord
call fcn.0041ba20
test eax, eax
je 0x40d0d3
cmp dword [eax + 4], 0
jne 0x40d11e
push esi
mov eax, str.FreqUpMode
call fcn.0041ad20
mov dword [esp + 0x18], eax
test eax, eax
je 0x40d10b
push eax
call fcn.004d17dd
mov ebx, eax
add esp, 4
test ebx, ebx
jl 0x40d10e
cmp ebx, 2
je 0x40d10e
cmp ebx, 3
je 0x40d10e
cmp ebx, 4
je 0x40d10e
push 0x52a0f8
jmp 0x40d113
or ebx, 0xffffffff
push 0x51a914
push str.LearnNewWord
push esi
call fcn.0041a850
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x2c]
mov eax, esi
mov dword [esp + 0x28], str.LearnFreq
call fcn.0041ba20
test eax, eax
je 0x40d14a
cmp dword [eax + 4], 0
jne 0x40d190
cmp dword [esp + 0x18], 0
jne 0x40d16b
push esi
mov eax, str.FreqUpMode
call fcn.0041ad20
test eax, eax
je 0x40d180
push eax
call fcn.004d17dd
add esp, 4
mov ebx, eax
test ebx, ebx
jl 0x40d180
cmp ebx, 3
je 0x40d180
cmp ebx, 4
je 0x40d180
push 0x52a0f8
jmp 0x40d185
push 0x51a914
push str.LearnFreq
push esi
call fcn.0041a850
lea eax, [esp + 0x54]
mov edi, esi
call fcn.004430e0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
test ecx, ecx
je 0x40d322
mov dword [esp + 0x4c], 0
jmp 0x40d1c4
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x18], esi
cmp eax, esi
je 0x40d20c
cmp ebx, esi
je 0x40d20c
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x38]
mov dword [esp + 0x28], ebx
call fcn.0041ba20
cmp eax, esi
je 0x40d208
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
jmp 0x40d20c
mov dword [esp + 0x18], esi
call fcn.0040bc20
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
lea edi, [esp + 0x40]
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], ebx
call fcn.0040c680
cmp eax, esi
je 0x40d234
mov eax, dword [eax]
jmp 0x40d236
xor eax, eax
mov ecx, dword [esp + 0x10]
push 0x14
add ecx, 4
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
call fcn.00404f20
cmp eax, esi
je 0x40d26a
mov byte [eax], 0
mov byte [eax + 1], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 4], 0xffffffff
mov byte [eax + 0x10], 0
mov esi, eax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
add edi, 4
push edi
lea eax, [esp + 0x4c]
call fcn.0040f3e0
test al, al
je 0x40d2d9
push str.KeyFocusWord
push ebx
call fcn.004d1734
add esp, 8
test eax, eax
jne 0x40d2cb
mov eax, esi
call fcn.0040f5c0
cmp eax, 2
jne 0x40d2cb
mov eax, 4
mov byte [esi + 0x10], 1
cmp dword [esi + 0xc], eax
jae 0x40d2c2
push eax
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00404f20
mov dword [esi + 8], eax
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x48]
call fcn.0040e520
mov edi, dword [esp + 0x40]
mov esi, dword [edi + 8]
test esi, esi
jne 0x40d2e8
xor ecx, ecx
jmp 0x40d316
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40d316
mov eax, dword [eax + 0xc]
xor edx, edx
div esi
inc edx
jmp 0x40d300
cmp edx, esi
jae 0x40d316
mov eax, dword [edi]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x40d311
mov ecx, dword [eax]
inc edx
test ecx, ecx
je 0x40d300
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x40d1c0
mov ecx, dword [esp + 0x10]
call fcn.0040e910
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], vtable.allocator_unsigned_char__class_TAllocDefault_.0
test eax, eax
je 0x40d35d
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x70], ecx
call dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
add esp, 4
test eax, eax
jne 0x40d346
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc