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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x512508
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x56957c]
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 0x41344d
lea ecx, [esi + 4]
call fcn.004154c0
mov dword [esi + 0x20], ebx
mov dword [esp + 0x60], fcn.004ed893
mov dword [esp + 0x64], fcn.004ee443
mov dword [esp + 0x68], fcn.004ed7b6
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 0x413499
add eax, 0xc
jmp 0x41349c
mov eax, dword [eax + 8]
mov edi, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [esp + 0x60]
call fcn.00422ee0
test al, al
jne 0x413517
mov ecx, edi
call fcn.00416430
push 0x549574
push 0x549858
mov edx, eax
call fcn.00417ed0
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 0x4134fd
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 0x4134e6
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 0x413595
xor esi, esi
mov dword [esp + 0x14], ebx
cmp esi, ebx
jne 0x413600
mov ecx, dword [ebp + 8]
call fcn.00416430
push 0x549584
push 0x549858
mov edx, eax
call fcn.00417ed0
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 0x41357b
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 0x413564
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.00423b30
cmp eax, ebx
je 0x4135be
mov esi, dword [eax + 4]
jmp 0x4135c0
xor esi, esi
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x413521
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], 0x549550
call fcn.00423b30
cmp eax, ebx
je 0x413521
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
jmp 0x413525
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.00423b30
cmp eax, ebx
je 0x41362b
cmp dword [eax + 4], ebx
jne 0x41365f
mov ecx, str.MaxWordCand
mov eax, esi
call fcn.00422dc0
cmp eax, ebx
je 0x41364f
push eax
call fcn.004ed02b
add esp, 4
test eax, eax
jle 0x41364f
push 0x544de4
jmp 0x413654
push 0x5495b0
push str.LimitWordCand
push esi
call fcn.00422890
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.00423b30
test eax, eax
je 0x413696
cmp dword [eax + 4], 0
jne 0x4136e2
mov ecx, str.FreqUpMode
mov eax, esi
call fcn.00422dc0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4136cf
push eax
call fcn.004ed02b
mov ebx, eax
add esp, 4
test ebx, ebx
jl 0x4136d2
cmp ebx, 2
je 0x4136d2
cmp ebx, 3
je 0x4136d2
cmp ebx, 4
je 0x4136d2
push 0x5495b0
jmp 0x4136d7
or ebx, 0xffffffff
push 0x544de4
push str.LearnNewWord
push esi
call fcn.00422890
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.00423b30
test eax, eax
je 0x41370e
cmp dword [eax + 4], 0
jne 0x413755
cmp dword [esp + 0x18], 0
jne 0x413730
mov ecx, str.FreqUpMode
mov eax, esi
call fcn.00422dc0
test eax, eax
je 0x413745
push eax
call fcn.004ed02b
add esp, 4
mov ebx, eax
test ebx, ebx
jl 0x413745
cmp ebx, 3
je 0x413745
cmp ebx, 4
je 0x413745
push 0x5495b0
jmp 0x41374a
push 0x544de4
push str.LearnFreq
push esi
call fcn.00422890
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.00423b30
test eax, eax
je 0x413781
cmp dword [eax + 4], 0
jne 0x41379d
mov ecx, str.IgnoreSkinColorSetting
mov eax, esi
call fcn.00422dc0
test eax, eax
je 0x41379d
push eax
push str.IgnoreSkinColorSetting_Real
push esi
call fcn.00422890
lea eax, [esp + 0x54]
mov edi, esi
call fcn.004130e0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
test ecx, ecx
je 0x413928
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 0x413811
cmp ebx, esi
je 0x413811
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.00423b30
cmp eax, esi
je 0x41380d
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
jmp 0x413811
mov dword [esp + 0x18], esi
call fcn.00412200
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.00412c80
cmp eax, esi
je 0x413839
mov eax, dword [eax]
jmp 0x41383b
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.00405c10
cmp eax, esi
je 0x413872
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 0x413874
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.00415e00
test al, al
je 0x4138e4
push str.KeyFocusWord
push ebx
call fcn.004ecf82
add esp, 8
test eax, eax
jne 0x4138d5
mov eax, esi
call fcn.00415fe0
cmp eax, 2
jne 0x4138d5
mov eax, 4
mov byte [esi + 0x10], 1
cmp dword [esi + 0xc], eax
jae 0x4138cc
push eax
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00405c10
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.00414d30
mov edi, dword [esp + 0x40]
mov esi, dword [edi + 8]
test esi, esi
jne 0x4138f3
xor ecx, ecx
jmp 0x41391c
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41391c
mov eax, dword [eax + 0xc]
xor edx, edx
div esi
inc edx
cmp edx, esi
jae 0x41391c
mov eax, dword [edi]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x413917
mov ecx, dword [eax]
inc edx
test ecx, ecx
je 0x413906
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x4137c5
mov ecx, dword [esp + 0x10]
call fcn.00415130
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 0x413967
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 0x413950
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