Function at 0x42c920
Capabilities:
Create thread

Disassembly:
mov eax, 0x8bc78
call fcn.00454700
mov eax, dword [0x4894c8]
xor eax, esp
mov dword [esp + 0x8bc74], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8bc8c]
push esi
push edi
mov edi, dword [esp + 0x8bc8c]
push edi
mov dword [esp + 0x14], edi
call fcn.0042cdf0
push 0x14
push str.MaxLayer
push str.WindowState
call fcn.004011d0
push 5
push str.MaxChildLayer
push str.WindowState
mov dword [0x8ede30], eax
call fcn.004011d0
push 0x14
push str.MaxCharLayer
push str.WindowState
mov dword [0xac20c4], eax
call fcn.004011d0
push 0xf6b3ac
push str.MesWaitCursor
push str.WindowState
mov dword [0x6e3fe0], eax
call fcn.004012d0
xor ebx, ebx
push ebx
push str.EnableDebugMode1
push str.WindowState
call fcn.004011d0
add esp, 0x40
xor ecx, ecx
cmp eax, 0x174b
sete cl
push ebx
push str.EnableDebugMode2
push str.WindowState
mov dword [0x12faa10], ecx
call fcn.004011d0
xor edx, edx
add esp, 0xc
cmp eax, 0x1229
mov eax, dword [esp + 0x8bc90]
sete dl
cmp eax, ebx
mov dword [0x1131bd4], edx
je 0x42cb7a
cmp ebp, ebx
je 0x42cb7a
lea esi, [esp + 0x88c84]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
cmp dl, bl
jne 0x42ca14
lea edx, [esp + 0x89c84]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x42ca30
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ca40
lea edi, [esp + 0x88c84]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x42ca55
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x42ca73
lea edi, [esp + 0x89c84]
or ebp, 0xffffffff
sub eax, ecx
mov esi, ecx
add edi, ebp
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x42ca90
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x88c84]
rep movsb byte es:[edi], byte [esi]
add eax, ebp
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x42cab1
mov ecx, dword [str..idx]
mov dl, byte [0x479eb8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x89c84]
add eax, ebp
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x42cad5
mov ecx, dword [str..pak]
mov dl, byte [0x479eb0]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x44638
lea eax, [esp + 0x89c88]
push eax
lea ecx, [esp + 0x88c8c]
push ecx
mov eax, 0x44638
call fcn.00454700
lea edx, [esp + 0x44658]
mov edi, esp
mov ecx, 0x1118e
mov esi, 0x8a97f8
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0041cdd0
add esp, 0x44644
push eax
lea eax, [esp + 0x44654]
push eax
call fcn.00454e80
push 0x44638
lea ecx, [esp + 0x4465c]
push ecx
push 0x8a97f8
call fcn.00454e80
add esp, 0x18
cmp dword [0x8a985c], ebp
jne 0x42cb74
push 0x479e7c
call fcn.004087e0
add esp, 4
xor eax, eax
jmp 0x42cdc1
mov edi, dword [esp + 0x10]
jmp 0x42cb7d
or ebp, 0xffffffff
call fcn.0042fb30
mov eax, 0x8865c0
jmp 0x42cb90
mov dword [eax - 0x84], ebx
mov dword [eax], ebx
mov byte [eax - 0x10cf], 1
lea ecx, [eax - 0x80]
mov edx, 0x10
mov dword [ecx + 0x40], ebp
mov dword [ecx], ebp
add ecx, 4
sub edx, 1
jne 0x42cba7
mov dword [eax - 0x10cc], ebx
mov dword [eax - 0xc8], ebx
mov byte [eax - 0x10d0], bl
add eax, 0x4e94
cmp eax, 0x89eea4
jl 0x42cb90
mov ebp, 1
mov dword [0x7fb50c], ebp
mov eax, 0x7fb834
mov byte [eax], bl
add eax, 0x226
cmp eax, 0x7fcdb0
jl 0x42cbe2
mov dword [0x7fb508], ebx
mov dword [0x8a06a0], ebx
mov byte [0x8854c8], bl
mov dword [0x8854cc], ebx
mov dword [0x8854d0], ebx
mov dword [0x8854d4], ebx
mov dword [0x8a96d4], ebx
mov dword [0x8a96dc], ebx
mov dword [0x8a96d8], ebx
mov dword [0x8a96f4], ebx
mov dword [0x8a96f8], ebp
mov dword [0x8a96f0], ebx
mov esi, 0x1e
lea ecx, [ecx]
push 0x1e690
push ebx
push 0x7d9f88
call fcn.00454750
add esp, 0xc
sub esi, ebp
jne 0x42cc40
push ebx
push 0xb3d1e8
push str.IniScriptPri.dat
mov byte [0x89e12e], bl
mov dword [0x7f8618], 0xffffff
mov dword [0x7f861c], ebx
mov dword [0x7f8620], 0xc0c0c0
mov dword [0x7f8624], ebx
call fcn.0041f4e0
mov edx, dword [str.IniScriptPri.dat]
mov eax, dword [0x479e6c]
mov ecx, dword [0x479e70]
mov dword [0x8864fc], edx
mov edx, dword [0x479e74]
mov dword [0x886500], eax
mov al, byte [0x479e78]
add esp, 0xc
mov dword [0x886504], ecx
mov dword [0x886508], edx
mov byte [0x88650c], al
mov dword [0x8854f4], ebx
mov dword [0x8864f8], ebx
mov byte [0x8854f0], 1
call fcn.0041bab0
push ebx
call dword [0x47733c]
cmp eax, dword [0x489170]
jne 0x42cd05
push ebx
push ebx
push 0x404
push edi
call dword [0x477328]
mov dword [0xf20594], ebp
jmp 0x42cd1b
cmp dword [0xf20594], ebp
jne 0x42cd1b
push ebx
push ebx
push 0x400
push edi
call dword [0x477328]
push 0x1f4
call dword [0x477080]
mov ecx, dword [0xf20598]
mov edx, dword [ecx*4 + 0x1797678]
push edx
push 0xfffffffffffffff4
push edi
call dword [0x47731c]
mov eax, dword [0xf20598]
mov ecx, dword [eax*4 + 0x1797678]
push ecx
call dword [0x477318]
mov edi, dword [0x4770a4]
xor esi, esi
jmp 0x42cd60
push esi
lea edx, [esp + 0x8ac88]
push str.EAGLS_EVENT_HANDLER__d
push edx
call fcn.00454878
add esp, 0xc
lea eax, [esp + 0x8ac84]
push eax
push ebx
push ebp
push ebx
call edi
cmp eax, ebx
mov dword [esi*4 + 0xf6b398], eax
je 0x42cdda
mov dword [esi*4 + 0x1131bc0], ebx
add esi, ebp
cmp esi, 5
jl 0x42cd60
push 0x6e3fe4
push ebx
push ebx
push 0x41ff10
push ebx
push ebx
call fcn.00455723
add esp, 0x18
push ebp
push eax
mov dword [0x1131bc0], eax
call dword [0x4770a8]
mov eax, ebp
mov ecx, dword [esp + 0x8bc84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004546e4
add esp, 0x8bc78
ret
push 0x478d90
call fcn.00408610
add esp, 4
xor eax, eax
jmp 0x42cdc1