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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446e70
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x45f4c8]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x45f4c8]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x94]
mov dword [esp + 0x10], ebx
call fcn.00408e30
push str.Reading_storyboard
push 0x450cfc
push 0x46064c
mov dword [esp + 0x174], ebx
call fcn.00417ac0
add esp, 0xc
lea eax, [esi + 0x228]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], eax
push ecx
mov ecx, eax
call fcn.00408c40
push str._Config_UI_Storyboards_Storyboard
lea ecx, [esp + 0x28]
mov byte [esp + 0x16c], 1
push ecx
mov ecx, eax
call fcn.00421720
mov byte [esp + 0x168], 3
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40e6e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.PageRef
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.004217f0
mov byte [esp + 0x168], 4
mov esi, dword [esp + 0x30]
push esi
push str.__Page_count:__d
push 0x450cfc
push 0x46064c
call fcn.00417ac0
xor eax, eax
add esp, 0x10
mov dword [esp + 0x1c], eax
test esi, esi
jle 0x40e9ce
lea esp, [esp]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.00421990
push 0xb4
mov byte [esp + 0x16c], 5
call fcn.0042f52e
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x168], 6
test edi, edi
je 0x40e7d3
push str.Condition
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
call fcn.00421200
mov esi, eax
push str.Name
lea eax, [esp + 0x80]
mov byte [esp + 0x16c], 7
or ebx, 1
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x18], ebx
call fcn.00421200
mov dword [esp + 0x168], 8
or ebx, 2
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], ebx
jb 0x40e7ba
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x40e7c2
mov eax, dword [eax]
push esi
push eax
mov ecx, edi
call fcn.00408d20
mov edi, eax
mov dword [esp + 0x10], eax
jmp 0x40e7d9
xor edi, edi
mov dword [esp + 0x10], edi
test bl, 2
je 0x40e814
and ebx, 0xfffffffd
cmp dword [esp + 0x90], 8
jb 0x40e7f7
push dword [esp + 0x7c]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
mov dword [esp + 0x168], 5
test bl, 1
je 0x40e851
and ebx, 0xfffffffe
cmp dword [esp + 0x78], 8
jb 0x40e83a
push dword [esp + 0x64]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov ecx, dword [esp + 0xf8]
lea eax, [esp + 0x28]
mov esi, dword [esp + 0xf4]
mov dword [esp + 0x28], edi
cmp eax, ecx
jae 0x40e903
cmp esi, eax
ja 0x40e903
mov edx, dword [esp + 0xfc]
mov edi, eax
sub edi, esi
sar edi, 2
cmp ecx, edx
jne 0x40e8ed
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x40e8ed
sub ecx, esi
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x40ebc0
inc ecx
sub edx, esi
sar edx, 2
mov eax, 0x3fffffff
mov dword [esp + 0x14], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x40e8c7
xor edx, edx
jmp 0x40e8c9
add edx, ecx
cmp edx, dword [esp + 0x14]
lea ecx, [esp + 0xf4]
cmovb edx, dword [esp + 0x14]
push edx
call fcn.00410780
mov ecx, dword [esp + 0xf8]
mov esi, dword [esp + 0xf4]
test ecx, ecx
je 0x40e8fd
mov eax, dword [esi + edi*4]
mov dword [ecx], eax
mov ecx, dword [esp + 0xf8]
mov edi, dword [esp + 0x10]
jmp 0x40e978
mov edx, dword [esp + 0xfc]
cmp ecx, edx
jne 0x40e96b
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x40e96b
sub ecx, esi
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x40ebc0
inc ecx
sub edx, esi
sar edx, 2
mov eax, 0x3fffffff
mov dword [esp + 0x14], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x40e94c
xor edx, edx
jmp 0x40e94e
add edx, ecx
cmp edx, dword [esp + 0x14]
lea ecx, [esp + 0xf4]
cmovb edx, dword [esp + 0x14]
push edx
call fcn.00410780
mov ecx, dword [esp + 0xf8]
test ecx, ecx
je 0x40e978
mov dword [ecx], edi
mov ecx, dword [esp + 0xf8]
add ecx, 4
lea eax, [edi + 0x48]
mov dword [esp + 0xf8], ecx
cmp dword [eax + 0x14], 8
jb 0x40e98d
mov eax, dword [eax]
push eax
push str.__Added:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
mov byte [esp + 0x178], 4
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e9bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x30]
jl 0x40e730
push str.Reading_string_map
push 0x450cfc
push 0x46064c
call fcn.00417ac0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
add esp, 0xc
push eax
call fcn.00408c40
push str._Config_UI_Strings
lea ecx, [esp + 0x24]
mov byte [esp + 0x16c], 0xb
push ecx
mov ecx, eax
call fcn.00421720
mov esi, dword [esp + 0x24]
mov ecx, dword [eax]
cmp esi, ecx
je 0x40ea32
mov edi, esi
mov esi, ecx
mov dword [esp + 0x24], esi
test ecx, ecx
je 0x40ea28
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
test edi, edi
je 0x40ea32
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40ea40
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x168], 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ea56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
sete al
test al, al
sete al
test al, al
je 0x40edbc
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], eax
mov word [esp + 0x64], ax
push 0x454398
lea eax, [esp + 0x38]
mov byte [esp + 0x16c], 0xd
push eax
lea ecx, [esp + 0x2c]
call fcn.004217f0
mov byte [esp + 0x168], 0xe
mov esi, dword [esp + 0x38]
push esi
push str.__Map_count:__d
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x40ed44
lea esp, [esp]
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
call fcn.00421990
push 0x4543c0
lea eax, [esp + 0x80]
mov byte [esp + 0x16c], 0xf
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00421200
cmp dword [esp + 0x8c], 0
je 0x40eb3d
cmp dword [esp + 0x90], 8
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push eax
call fcn.00430e39
add esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x90], 8
jb 0x40eb53
push dword [esp + 0x7c]
call fcn.00420070
add esp, 4
push str.Template
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
call fcn.00421200
mov esi, eax
lea eax, [esp + 0x4c]
cmp eax, esi
je 0x40ebf7
cmp dword [esp + 0x60], 8
jb 0x40eb8a
push dword [esp + 0x4c]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp dword [esi + 0x14], 8
jae 0x40ebca
mov eax, dword [esi + 0x10]
inc eax
je 0x40ebd6
add eax, eax
push eax
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0042f580
add esp, 0xc
jmp 0x40ebd6
push str.vector_T__too_long
call fcn.0042e988
mov eax, dword [esi]
mov dword [esp + 0x4c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [esp + 0x90], 8
jb 0x40ec0d
push dword [esp + 0x7c]
call fcn.00420070
add esp, 4
cmp dword [esp + 0x60], 8
lea ecx, [esp + 0x64]
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
push ecx
push eax
mov ecx, 0x4621e0
call fcn.00419c10
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x64]
cmp dword [esp + 0x78], 8
mov ecx, 0x462a14
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
cmovae ebx, dword [esp + 0x64]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0041a3b0
push dword [esp + 0x44]
lea eax, [esp + 0x4c]
mov ecx, 0x462a14
push dword [esp + 0x44]
push eax
call fcn.0041a020
mov edx, dword [0x462a14]
mov esi, edx
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x40ec95
cmp dword [eax + 0x10], ecx
jge 0x40ec8b
mov eax, dword [eax + 8]
jmp 0x40ec8f
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40ec81
cmp esi, edx
je 0x40ec9e
cmp ecx, dword [esi + 0x10]
jge 0x40ecd0
lea eax, [esp + 0x18]
push ecx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, 0x462a14
call fcn.0041a960
push eax
add eax, 0x10
mov ecx, 0x462a14
push eax
push esi
lea eax, [esp + 0x20]
push eax
call fcn.0041a9a0
mov esi, dword [esp + 0x14]
cmp word [ebx], 0
jne 0x40ecda
xor ecx, ecx
jmp 0x40ecef
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ece0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esi + 0x14]
call fcn.00404410
cmp dword [esp + 0x60], 8
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
push eax
push dword [esp + 0x20]
push str.__Added:_ID__d_to__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
mov byte [esp + 0x17c], 0xe
add esp, 0x14
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ed39
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp edi, dword [esp + 0x38]
jl 0x40eae0
mov byte [esp + 0x168], 0xd
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40ed5a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esp + 0x78], 8
jb 0x40ed6d
push dword [esp + 0x64]
call fcn.00420070
add esp, 4
xor eax, eax
mov byte [esp + 0x168], 4
cmp dword [esp + 0x60], 8
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
jb 0x40ed9f
push dword [esp + 0x4c]
call fcn.00420070
add esp, 4
mov esi, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
jmp 0x40edd3
push str.__No_string_map_present
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
push ecx
lea ecx, [esp + 0x98]
call fcn.00404fc0
mov byte [esp + 0x168], 3
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40edf6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [esp + 0x168], 0
test esi, esi
je 0x40ee08
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [esp + 0x94]
mov dword [esp + 0x168], 0xffffffff
call fcn.0040ee50
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret