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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x527fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x581500]
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
mov ebx, 0
jne 0x406c2d
lea ecx, [esi + 4]
call fcn.00404570
mov dword [esi + 0x20], ebx
mov dword [esp + 0x60], fcn.004faba2
mov dword [esp + 0x64], fcn.004fac96
mov dword [esp + 0x68], fcn.004faac5
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], bl
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x88], ebx
cmp byte [eax + 0x11c], 0
je 0x406c79
add eax, 0xc
jmp 0x406c7c
mov eax, dword [eax + 8]
mov edi, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [esp + 0x60]
call fcn.004140b0
test al, al
jne 0x406cf7
mov ecx, edi
call fcn.00409990
push 0x55bff0
push 0x55d15c
mov edx, eax
call fcn.00411e80
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 0x406cdd
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 0x406cc6
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 0x406d75
xor esi, esi
mov dword [esp + 0x14], ebx
cmp esi, ebx
jne 0x406de0
mov ecx, dword [ebp + 8]
call fcn.00409990
push 0x55c000
push 0x55d15c
mov edx, eax
call fcn.00411e80
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 0x406d5b
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 0x406d44
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.00440220
cmp eax, ebx
je 0x406d9e
mov esi, dword [eax + 4]
jmp 0x406da0
xor esi, esi
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x406d01
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], 0x55bfcc
call fcn.00440220
cmp eax, ebx
je 0x406d01
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
jmp 0x406d05
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.00440220
cmp eax, ebx
je 0x406e0b
cmp dword [eax + 4], ebx
jne 0x406e3f
mov ecx, str.MaxWordCand
mov eax, esi
call fcn.00413f90
cmp eax, ebx
je 0x406e2f
push eax
call fcn.004fc2d1
add esp, 4
test eax, eax
jle 0x406e2f
push 0x55c030
jmp 0x406e34
push 0x55c02c
push str.LimitWordCand
push esi
call fcn.00413a70
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x34]
mov eax, esi
mov dword [esp + 0x24], 0
or ebx, 0xffffffff
mov dword [esp + 0x28], str.LearnNewWord
call fcn.00440220
test eax, eax
je 0x406e76
cmp dword [eax + 4], 0
jne 0x406ec2
mov ecx, str.FreqUpMode
mov eax, esi
call fcn.00413f90
mov dword [esp + 0x18], eax
test eax, eax
je 0x406eaf
push eax
call fcn.004fc2d1
mov ebx, eax
add esp, 4
test ebx, ebx
jl 0x406eb2
cmp ebx, 2
je 0x406eb2
cmp ebx, 3
je 0x406eb2
cmp ebx, 4
je 0x406eb2
push 0x55c02c
jmp 0x406eb7
or ebx, 0xffffffff
push 0x55c030
push str.LearnNewWord
push esi
call fcn.00413a70
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.00440220
test eax, eax
je 0x406eee
cmp dword [eax + 4], 0
jne 0x406f35
cmp dword [esp + 0x18], 0
jne 0x406f10
mov ecx, str.FreqUpMode
mov eax, esi
call fcn.00413f90
test eax, eax
je 0x406f25
push eax
call fcn.004fc2d1
add esp, 4
mov ebx, eax
test ebx, ebx
jl 0x406f25
cmp ebx, 3
je 0x406f25
cmp ebx, 4
je 0x406f25
push 0x55c02c
jmp 0x406f2a
push 0x55c030
push str.LearnFreq
push esi
call fcn.00413a70
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.IgnoreSkinColorSetting_Real
call fcn.00440220
test eax, eax
je 0x406f61
cmp dword [eax + 4], 0
jne 0x406f7d
mov ecx, str.IgnoreSkinColorSetting
mov eax, esi
call fcn.00413f90
test eax, eax
je 0x406f7d
push eax
push str.IgnoreSkinColorSetting_Real
push esi
call fcn.00413a70
lea eax, [esp + 0x54]
mov edi, esi
call fcn.0045ca40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
test ecx, ecx
je 0x407108
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x18], esi
cmp eax, esi
je 0x406ff1
cmp ebx, esi
je 0x406ff1
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.00440220
cmp eax, esi
je 0x406fed
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
jmp 0x406ff1
mov dword [esp + 0x18], esi
call fcn.00405980
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.00406400
cmp eax, esi
je 0x407019
mov eax, dword [eax]
jmp 0x40701b
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.00402760
cmp eax, esi
je 0x407052
xor ecx, ecx
mov byte [eax], 0
mov byte [eax + 1], 0
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], cl
mov esi, eax
jmp 0x407054
xor esi, esi
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.00409520
test al, al
je 0x4070c4
push str.KeyFocusWord
push ebx
call fcn.004fc550
add esp, 8
test eax, eax
jne 0x4070b5
mov eax, esi
call fcn.00409700
cmp eax, 2
jne 0x4070b5
mov eax, 4
mov byte [esi + 0x10], 1
cmp dword [esi + 0xc], eax
jae 0x4070ac
push eax
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00402760
mov dword [esi + 8], eax
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov eax, dword [esp + 0x10]
push esi
lea edx, [esp + 0x48]
push edx
call fcn.00408510
mov edi, dword [esp + 0x40]
mov esi, dword [edi + 8]
test esi, esi
jne 0x4070d3
xor ecx, ecx
jmp 0x4070fc
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4070fc
mov eax, dword [eax + 0xc]
xor edx, edx
div esi
inc edx
cmp edx, esi
jae 0x4070fc
mov eax, dword [edi]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x4070f7
mov ecx, dword [eax]
inc edx
test ecx, ecx
je 0x4070e6
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x406fa5
mov ecx, dword [esp + 0x10]
call fcn.00408910
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 0x407147
lea esp, [esp]
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 0x407130
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