Function at 0x42cb60
Capabilities:
Create thread

Disassembly:
mov eax, 0x8bc78
call fcn.004541d0
mov eax, dword [0x4874c8]
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.0042d030
push 0x14
push str.MaxLayer
push str.WindowState
call fcn.004011d0
push 5
push str.MaxChildLayer
push str.WindowState
mov dword [0x8ebe30], eax
call fcn.004011d0
push 0x14
push str.MaxCharLayer
push str.WindowState
mov dword [0xac00c4], eax
call fcn.004011d0
push 0xf693ac
push str.MesWaitCursor
push str.WindowState
mov dword [0x6e1fe0], 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 [0x12f8a10], 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 [0x112fbd4], edx
je 0x42cdba
cmp ebp, ebx
je 0x42cdba
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 0x42cc54
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 0x42cc70
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cc80
lea edi, [esp + 0x88c84]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x42cc95
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 0x42ccb3
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 0x42ccd0
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 0x42ccf1
mov ecx, dword [str..idx]
mov dl, byte [0x478f18]
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 0x42cd15
mov ecx, dword [str..pak]
mov dl, byte [0x478f10]
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.004541d0
lea edx, [esp + 0x44658]
mov edi, esp
mov ecx, 0x1118e
mov esi, 0x8a77f8
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.00454950
push 0x44638
lea ecx, [esp + 0x4465c]
push ecx
push 0x8a77f8
call fcn.00454950
add esp, 0x18
cmp dword [0x8a785c], ebp
jne 0x42cdb4
push 0x478edc
call fcn.004087e0
add esp, 4
xor eax, eax
jmp 0x42d001
mov edi, dword [esp + 0x10]
jmp 0x42cdbd
or ebp, 0xffffffff
call fcn.0042fd70
mov eax, 0x8845c0
jmp 0x42cdd0
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 0x42cde7
mov dword [eax - 0x10cc], ebx
mov dword [eax - 0xc8], ebx
mov byte [eax - 0x10d0], bl
add eax, 0x4e94
cmp eax, 0x89cea4
jl 0x42cdd0
mov ebp, 1
mov dword [0x7f950c], ebp
mov eax, 0x7f9834
mov byte [eax], bl
add eax, 0x226
cmp eax, 0x7fadb0
jl 0x42ce22
mov dword [0x7f9508], ebx
mov dword [0x89e6a0], ebx
mov byte [0x8834c8], bl
mov dword [0x8834cc], ebx
mov dword [0x8834d0], ebx
mov dword [0x8834d4], ebx
mov dword [0x8a76d4], ebx
mov dword [0x8a76dc], ebx
mov dword [0x8a76d8], ebx
mov dword [0x8a76f4], ebx
mov dword [0x8a76f8], ebp
mov dword [0x8a76f0], ebx
mov esi, 0x1e
lea ecx, [ecx]
push 0x1e690
push ebx
push 0x7d7f88
call fcn.00454220
add esp, 0xc
sub esi, ebp
jne 0x42ce80
push ebx
push 0xb3b1e8
push str.IniScriptPri.dat
mov byte [0x89c12e], bl
mov dword [0x7f6618], 0xffffff
mov dword [0x7f661c], ebx
mov dword [0x7f6620], 0xc0c0c0
mov dword [0x7f6624], ebx
call fcn.0041f4e0
mov edx, dword [str.IniScriptPri.dat]
mov eax, dword [0x478ecc]
mov ecx, dword [0x478ed0]
mov dword [0x8844fc], edx
mov edx, dword [0x478ed4]
mov dword [0x884500], eax
mov al, byte [0x478ed8]
add esp, 0xc
mov dword [0x884504], ecx
mov dword [0x884508], edx
mov byte [0x88450c], al
mov dword [0x8834f4], ebx
mov dword [0x8844f8], ebx
mov byte [0x8834f0], 1
call fcn.0041bab0
push ebx
call dword [0x47633c]
cmp eax, dword [0x487170]
jne 0x42cf45
push ebx
push ebx
push 0x404
push edi
call dword [0x476328]
mov dword [0xf1e594], ebp
jmp 0x42cf5b
cmp dword [0xf1e594], ebp
jne 0x42cf5b
push ebx
push ebx
push 0x400
push edi
call dword [0x476328]
push 0x1f4
call dword [0x476080]
mov ecx, dword [0xf1e598]
mov edx, dword [ecx*4 + 0x1795678]
push edx
push 0xfffffffffffffff4
push edi
call dword [0x47631c]
mov eax, dword [0xf1e598]
mov ecx, dword [eax*4 + 0x1795678]
push ecx
call dword [0x476318]
mov edi, dword [0x4760a4]
xor esi, esi
jmp 0x42cfa0
push esi
lea edx, [esp + 0x8ac88]
push str.EAGLS_EVENT_HANDLER__d
push edx
call fcn.00454348
add esp, 0xc
lea eax, [esp + 0x8ac84]
push eax
push ebx
push ebp
push ebx
call edi
cmp eax, ebx
mov dword [esi*4 + 0xf69398], eax
je 0x42d01a
mov dword [esi*4 + 0x112fbc0], ebx
add esi, ebp
cmp esi, 5
jl 0x42cfa0
push 0x6e1fe4
push ebx
push ebx
push 0x41ff10
push ebx
push ebx
call fcn.004551f3
add esp, 0x18
push ebp
push eax
mov dword [0x112fbc0], eax
call dword [0x4760a8]
mov eax, ebp
mov ecx, dword [esp + 0x8bc84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004541b4
add esp, 0x8bc78
ret
push 0x477d98
call fcn.00408610
add esp, 4
xor eax, eax
jmp 0x42d001