Function at 0x4128ec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x1c
mov eax, 0x50a67d
call fcn.004df3ad
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp eax, 1
je 0x412967
push 1
push 0x88
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CDialogManager::MapDialogSegment
call fcn.004014b0
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.MapDialogSegment_called_with_invalid_segment_type_
call fcn.004014b0
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.mapdlgs
call fcn.004014b0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
add ecx, 4
mov eax, dword [ecx]
add eax, 4
push 1
or dword [ebp - 4], 0xffffffff
call dword [eax]
xor eax, eax
call fcn.004df44c
ret 8
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x28]
call fcn.0040520f
mov dword [ebp - 4], 3
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
and dword [ebp - 0x18], 0
test eax, eax
jle 0x412b12
mov eax, dword [ebp - 0x18]
call fcn.0041646c
mov edi, dword [eax]
mov eax, dword [edi]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [ebp - 4], 4
mov ecx, dword [ebx + 0x28]
add ecx, 0x3b4
mov byte [ebp - 4], 3
call fcn.004094a3
mov esi, eax
test esi, esi
je 0x412c45
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.__Adding
push ecx
mov ecx, eax
call fcn.004035c8
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
push 4
mov byte [ebp - 4], 0xc
call fcn.004066ca
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004010f8
mov eax, dword [ebx + 0x48]
push eax
lea ecx, [eax + 1]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x48], ecx
push dword [eax + 4]
push ebx
mov ebx, esi
call fcn.00412f0c
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00411c13
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x412da1
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc0], 0
je 0x412a68
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0xf
mov ecx, dword [ebx + 0xc0]
mov eax, dword [ecx]
add eax, 0x5c
mov byte [ebp - 4], 0xe
call dword [eax]
push ecx
mov esi, esp
mov dword [ebp - 0x20], esp
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x10
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xe
call fcn.00407701
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xe
call fcn.00406f75
test eax, eax
pop ecx
je 0x412cea
mov eax, dword [edi]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [ebp - 4], 0x1a
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0xe
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042fab4
cmp eax, 0xffffffff
je 0x412d91
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004010f8
inc dword [ebp - 0x18]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ecx + 8]
mov ebx, dword [ebp + 8]
jl 0x41298e
cmp dword [ebx + 0x54], 0
je 0x412e44
push ecx
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
mov dword [eax], 0x5af3f8
mov dword [eax + 4], 8
mov byte [ebp - 4], 0x23
mov edi, dword [ebx + 0x28]
add edi, 0x3b4
mov byte [ebp - 4], 3
call fcn.00411d3f
mov edi, eax
lea eax, [ebp + 8]
push eax
push edi
call fcn.00411c13
mov byte [ebp - 4], 0x24
cmp dword [ebx + 0xc0], 0
je 0x412b83
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x25
mov ecx, dword [ebx + 0xc0]
mov eax, dword [ecx]
add eax, 0x5c
mov byte [ebp - 4], 0x24
call dword [eax]
push ecx
mov esi, esp
mov dword [ebp - 0x28], esp
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x26
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 0x24
call fcn.00407701
pop ecx
pop ecx
mov byte [ebp - 4], 0x28
mov byte [ebp - 4], 0x24
call fcn.00406f75
test eax, eax
pop ecx
je 0x412e4c
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.__Adding_Cancel_dialog.
call fcn.004014b0
mov byte [ebp - 4], 0x29
push 4
mov byte [ebp - 4], 0x24
call fcn.004066ca
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push eax
push edi
call fcn.0040946e
mov byte [ebp - 4], 0x2a
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 0x24
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042fab4
cmp eax, 0xffffffff
jne 0x412e38
mov edi, dword [esi + 4]
add edi, 0x78
lea esi, [ebx + 4]
call fcn.0040883d
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
jmp 0x412cd4
push 1
push 0x93
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.CDialogManager::MapDialogSegment
call fcn.004014b0
mov byte [ebp - 4], 5
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
push str.Dialog_config_for
push ecx
mov ecx, eax
call fcn.004035c8
mov byte [ebp - 4], 7
add esp, 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str._not_found_
push eax
push ecx
call fcn.00403564
mov byte [ebp - 4], 8
add esp, 8
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.nodialog
call fcn.004014b0
mov byte [ebp - 4], 9
lea ecx, [ebx + 4]
mov eax, dword [ecx]
add eax, 4
push 1
mov byte [ebp - 4], 0xb
call dword [eax]
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 8]
call fcn.004010f8
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.004010f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004010f8
jmp 0x41295d
push 1
push 0xa6
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CDialogManager::MapDialogSegment
call fcn.004014b0
mov byte [ebp - 4], 0x13
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x14
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x13
lea esi, [ebp + 8]
call fcn.00407701
mov byte [ebp - 4], 0x16
add esp, 4
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Dialog_file_not_found_
push ecx
mov ecx, eax
call fcn.004035c8
mov byte [ebp - 4], 0x17
add esp, 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.dlgmissing
call fcn.004014b0
mov byte [ebp - 4], 0x18
lea ecx, [ebx + 4]
mov eax, dword [ecx]
add eax, 4
push 1
mov byte [ebp - 4], 0x19
call dword [eax]
mov byte [ebp - 4], 0xe
mov ecx, esi
call fcn.004010f8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
jmp 0x412cd4
mov edi, dword [esi + 4]
add edi, 0x78
lea esi, [ebx + 4]
call fcn.0040883d
jmp 0x412d85
push 1
push 0xb1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.CDialogManager::MapDialogSegment
call fcn.004014b0
mov byte [ebp - 4], 0x1c
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0xc]
push str.__Dialog_ini_for
push ecx
mov ecx, eax
call fcn.004035c8
mov byte [ebp - 4], 0x1e
add esp, 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str._not_found_
push eax
push ecx
call fcn.00403564
mov byte [ebp - 4], 0x1f
add esp, 8
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.nodialogini
call fcn.004014b0
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp + 8]
add ecx, 4
mov eax, dword [ecx]
add eax, 4
push 1
mov byte [ebp - 4], 0x22
call dword [eax]
mov byte [ebp - 4], 0x21
lea ecx, [ebp + 0xc]
call fcn.004010f8
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1c]
jmp 0x412d80
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.004010f8
xor esi, esi
inc esi
jmp 0x412ef9
and dword [ebx + 0x54], 0
push 1
push 0xd0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.CDialogManager::MapDialogSegment
call fcn.004014b0
mov byte [ebp - 4], 0x2c
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x2d
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004037f2
mov byte [ebp - 4], 0x2e
mov byte [ebp - 4], 0x2c
lea esi, [ebp + 0xc]
call fcn.00407701
mov byte [ebp - 4], 0x2f
add esp, 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Cancel_dialog_file_not_found_
push ecx
mov ecx, eax
call fcn.004035c8
mov byte [ebp - 4], 0x30
add esp, 4
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.dlgmissing2
call fcn.004014b0
mov byte [ebp - 4], 0x31
lea ecx, [ebx + 4]
mov eax, dword [ecx]
add eax, 4
push 1
mov byte [ebp - 4], 0x32
call dword [eax]
mov byte [ebp - 4], 0x24
mov ecx, esi
call fcn.004010f8
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.004010f8
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004010f8
mov eax, esi
jmp 0x41295f