Function at 0x41a3a0
Capabilities:
Create thread

Disassembly:
mov eax, 0x4493c
call fcn.0043fa90
push ebx
push ebp
push esi
push edi
push 0x14
push str.MaxLayer
push 0x45e6f8
call fcn.004010b0
push 5
push str.MaxChildLayer
push 0x45e714
mov dword [0x6998d8], eax
call fcn.004010b0
push 0x14
push str.MaxCharLayer
push 0x45e730
mov dword [0x7e3178], eax
call fcn.004010b0
mov dword [0x7e3174], eax
mov eax, dword [esp + 0x44978]
xor ebx, ebx
add esp, 0x24
cmp eax, ebx
je 0x41a54b
mov ebp, dword [esp + 0x44958]
cmp ebp, ebx
je 0x41a54b
lea esi, [esp + 0x14]
mov ecx, eax
sub esi, eax
nop
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x41a420
lea edx, [esp + 0x114]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41a433
xor eax, eax
mov edi, ebp
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
or ecx, 0xffffffff
mov esi, edi
mov dword [esp + 0x10], eax
xor eax, eax
lea edx, [esp + 0x14]
mov edi, edx
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ebp, 0xffffffff
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov dword [esp + 0x10], eax
xor eax, eax
lea edx, [esp + 0x114]
mov edi, edx
mov edx, dword [esp + 0x10]
mov ecx, ebp
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x45e744]
lea edi, [esp + 0x14]
mov ecx, ebp
repne scasb al, byte es:[edi]
mov eax, dword [0x45e73c]
mov cl, byte [0x45e740]
dec edi
mov dword [edi], eax
mov byte [edi + 4], cl
xor eax, eax
lea edi, [esp + 0x114]
mov ecx, ebp
repne scasb al, byte es:[edi]
mov al, byte [0x45e748]
dec edi
mov dword [edi], edx
lea ecx, [esp + 0x114]
push ecx
mov byte [edi + 4], al
lea edx, [esp + 0x18]
push edx
mov eax, 0x44638
call fcn.0043fa90
lea eax, [esp + 0x44954]
mov edi, esp
mov ecx, 0x1118e
mov esi, 0x5e8fc0
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00418580
mov esi, eax
mov edi, 0x5e8fc0
mov ecx, 0x1118e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5e9024]
add esp, 0x44644
cmp eax, ebp
jne 0x41a54e
push 0x45e74c
call fcn.00405210
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4493c
ret
or ebp, 0xffffffff
call fcn.00426c10
mov eax, 0x67c028
mov dword [eax - 0x84], ebx
mov dword [eax], ebx
lea ecx, [eax - 0x80]
mov edx, 0x10
mov dword [ecx + 0x40], ebp
mov dword [ecx], ebp
add ecx, 4
dec edx
jne 0x41a568
mov dword [eax - 0x1cc], ebx
mov dword [eax - 0xc8], ebx
mov byte [eax - 0x1d0], bl
add eax, 0x3f94
cmp eax, 0x68fe0c
jl 0x41a558
mov eax, 0x66b360
mov byte [eax], bl
add eax, 0x226
cmp eax, 0x66c8dc
jl 0x41a596
mov eax, 0x1e0
mov edx, 0x16b
mov ecx, 0x267
mov esi, 0xf
mov ebp, 0x166
mov edi, 0x280
mov dword [0x68fe98], edx
mov dword [0x69009c], edx
mov dword [0x6900ac], edx
mov dword [0x6900bc], edx
mov dword [0x66b038], ebx
mov dword [0x6908b4], ebx
mov byte [0x67be44], bl
mov dword [0x67be48], ebx
mov dword [0x67be4c], ebx
mov dword [0x67be50], ebx
mov byte [0x68feb4], bl
mov byte [0x68ff95], bl
mov dword [0x68fe84], ebx
mov dword [0x68fe88], ebp
mov dword [0x68fe8c], edi
mov dword [0x68fe90], eax
mov dword [0x68fe94], esi
mov dword [0x68fe9c], ecx
mov dword [0x68fea0], eax
mov dword [0x68fea4], ebx
mov dword [0x68fea8], ebp
mov dword [0x68feac], edi
mov dword [0x68feb0], eax
mov byte [0x6900d8], bl
mov byte [0x6900d9], bl
mov dword [0x690098], esi
mov dword [0x6900a0], ecx
mov dword [0x6900a4], eax
mov dword [0x6900a8], esi
mov dword [0x6900b0], ecx
mov dword [0x6900b4], eax
mov dword [0x6900b8], esi
mov dword [0x6900c0], ecx
mov dword [0x6900c4], eax
mov dword [0x6900c8], ebx
mov dword [0x6900cc], 0x2c
mov dword [0x6900d0], ecx
mov dword [0x6900d4], eax
mov dword [0x6998b8], ebx
mov dword [0x6998c0], ebx
mov dword [0x6998bc], ebx
mov edx, 0x1e
lea ebx, [ebx]
xor eax, eax
dec edx
mov ecx, 0x924
mov edi, 0x665cc8
rep stosd dword es:[edi], eax
jne 0x41a6c0
push ebx
push 0x6998e0
push 0x45e77c
mov byte [0x68ff96], bl
call fcn.0041a910
mov ecx, dword [str.IniScriptPri.dat]
mov edx, dword [0x45e794]
mov eax, dword [0x45e798]
mov dword [0x67bf64], ecx
mov ecx, dword [0x45e79c]
mov dword [0x67bf68], edx
mov dl, byte [0x45e7a0]
add esp, 0xc
mov dword [0x67bf6c], eax
mov dword [0x67bf70], ecx
mov byte [0x67bf74], dl
mov dword [0x67be5c], ebx
mov dword [0x67bf60], ebx
mov byte [0x67be58], 1
call fcn.004171c0
push ebx
call dword [0x45a2bc]
cmp eax, dword [0x4633b0]
mov esi, dword [esp + 0x44950]
jne 0x41a76c
push ebx
push ebx
push 0x404
push esi
call dword [0x45a1fc]
mov dword [0x827768], 1
jmp 0x41a783
cmp dword [0x827768], 1
jne 0x41a783
push ebx
push ebx
push 0x400
push esi
call dword [0x45a1fc]
push 0x1f4
call dword [0x45a064]
mov eax, dword [0x82776c]
mov ecx, dword [eax*4 + 0x4b7ee0]
push ecx
push 0xfffffffffffffff4
push esi
call dword [0x45a218]
mov edx, dword [0x82776c]
mov eax, dword [edx*4 + 0x4b7ee0]
push eax
call dword [0x45a21c]
mov edi, dword [0x45a080]
xor esi, esi
push esi
lea ecx, [esp + 0x218]
push str.EAGLS_EVENT_HANDLER__d
push ecx
call fcn.0043fa31
add esp, 0xc
lea edx, [esp + 0x214]
push edx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi*4 + 0x7e3160], eax
je 0x41a820
inc esi
cmp esi, 5
jl 0x41a7c0
push 0x7e3180
push ebx
push ebx
push 0x41b160
push ebx
push ebx
call fcn.0043fcfe
mov dword [0x77b620], eax
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4493c
ret
push str.CreateEvent_Error
call fcn.00405230
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4493c
ret