Function at 0x42e760
Capabilities:
Create thread

Disassembly:
mov eax, 0xca538
call fcn.0045a570
mov eax, dword [0x48f4c8]
xor eax, esp
mov dword [esp + 0xca534], eax
push ebx
push ebp
mov ebp, dword [esp + 0xca54c]
push esi
push edi
mov edi, dword [esp + 0xca54c]
push edi
mov dword [esp + 0x14], edi
call fcn.0042ec40
push 0x14
push str.MaxLayer
push str.WindowState
call fcn.004011d0
push 5
push str.MaxChildLayer
push str.WindowState
mov dword [0x8650b0], eax
call fcn.004011d0
push 0x14
push str.MaxCharLayer
push str.WindowState
mov dword [0x9cc184], eax
call fcn.004011d0
push 0xdb4890
push str.MesWaitCursor
push str.WindowState
mov dword [0x6a8fc0], 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 [0x1069b74], ecx
call fcn.004011d0
xor edx, edx
add esp, 0xc
cmp eax, 0x1229
mov eax, dword [esp + 0xca550]
sete dl
cmp eax, ebx
mov dword [0x1069b70], edx
je 0x42e9ba
cmp ebp, ebx
je 0x42e9ba
lea esi, [esp + 0xc7544]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
cmp dl, bl
jne 0x42e854
lea edx, [esp + 0xc8544]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x42e870
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42e880
lea edi, [esp + 0xc7544]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x42e895
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 0x42e8b3
lea edi, [esp + 0xc8544]
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 0x42e8d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc7544]
rep movsb byte es:[edi], byte [esi]
add eax, ebp
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x42e8f1
mov ecx, dword [str..idx]
mov dl, byte [0x47ffa0]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0xc8544]
add eax, ebp
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x42e915
mov ecx, dword [str..pak]
mov dl, byte [0x47ff98]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x63a98
lea eax, [esp + 0xc8548]
push eax
lea ecx, [esp + 0xc754c]
push ecx
mov eax, 0x63a98
call fcn.0045a570
lea edx, [esp + 0x63ab8]
mov edi, esp
mov ecx, 0x18ea6
mov esi, 0x801618
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0041dd00
add esp, 0x63aa4
push eax
lea eax, [esp + 0x63ab4]
push eax
call fcn.0045acf0
push 0x63a98
lea ecx, [esp + 0x63abc]
push ecx
push 0x801618
call fcn.0045acf0
add esp, 0x18
cmp dword [0x803618], ebp
jne 0x42e9b4
push 0x47ff64
call fcn.00408cb0
add esp, 4
xor eax, eax
jmp 0x42ec11
mov edi, dword [esp + 0x10]
jmp 0x42e9bd
or ebp, 0xffffffff
call fcn.00431990
mov eax, 0x7d9038
jmp 0x42e9d0
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 0x42e9e7
mov dword [eax - 0x10cc], ebx
mov dword [eax - 0xc8], ebx
mov byte [eax - 0x10d0], bl
add eax, 0x4e94
cmp eax, 0x7f191c
jl 0x42e9d0
mov ebp, 1
mov dword [0x74e044], ebp
mov eax, 0x74e36c
mov byte [eax], bl
add eax, 0x226
cmp eax, 0x74f8e8
jl 0x42ea22
mov dword [0x74e040], ebx
mov dword [0x7f33b8], ebx
mov byte [0x7d7f40], bl
mov dword [0x7d7f44], ebx
mov dword [0x7d7f48], ebx
mov dword [0x7d7f4c], ebx
mov dword [0x8014ec], ebx
mov dword [0x8014f4], ebx
mov dword [0x8014f0], ebx
mov dword [0x80150c], ebx
mov dword [0x801510], ebp
mov dword [0x801508], ebx
mov esi, 0x1e
lea ecx, [ecx]
push 0x1e690
push ebx
push 0x72cac0
call fcn.0045a5c0
add esp, 0xc
sub esi, ebp
jne 0x42ea80
push ebx
push 0xa472a8
push str.IniScriptPri.dat
mov byte [0x7f0ba6], bl
mov dword [0x74b150], 0xffffff
mov dword [0x74b154], ebx
mov dword [0x74b158], 0xc0c0c0
mov dword [0x74b15c], ebx
call fcn.004208b0
mov edx, dword [str.IniScriptPri.dat]
mov eax, dword [0x47ff54]
mov ecx, dword [0x47ff58]
mov dword [0x7d8f74], edx
mov edx, dword [0x47ff5c]
mov dword [0x7d8f78], eax
mov al, byte [0x47ff60]
add esp, 0xc
mov dword [0x7d8f7c], ecx
mov dword [0x7d8f80], edx
mov byte [0x7d8f84], al
mov dword [0x7d7f6c], ebx
mov dword [0x7d8f70], ebx
mov byte [0x7d7f68], 1
call fcn.0041c930
mov esi, dword [0x47d354]
push ebx
call esi
cmp eax, dword [0x48f170]
jne 0x42eb47
push ebx
push ebx
push 0x404
push edi
call dword [0x47d340]
mov dword [0xd69a0c], ebp
jmp 0x42eb70
push ebp
call esi
cmp eax, dword [0x48f174]
jne 0x42eb5a
cmp dword [0xd69af4], ebx
je 0x42eb62
cmp dword [0xd69a0c], ebp
jne 0x42eb70
push ebx
push ebx
push 0x400
push edi
call dword [0x47d340]
push 0x1f4
call dword [0x47d080]
mov ecx, dword [0xd69a10]
mov edx, dword [ecx*4 + 0x1449708]
push edx
push 0xfffffffffffffff4
push edi
call dword [0x47d334]
mov eax, dword [0xd69a10]
mov ecx, dword [eax*4 + 0x1449708]
push ecx
call dword [0x47d330]
mov edi, dword [0x47d0a4]
xor esi, esi
lea ecx, [ecx]
push esi
lea edx, [esp + 0xc9548]
push str.EAGLS_EVENT_HANDLER__d
push edx
call fcn.0045a6e7
add esp, 0xc
lea eax, [esp + 0xc9544]
push eax
push ebx
push ebp
push ebx
call edi
cmp eax, ebx
mov dword [esi*4 + 0xdb487c], eax
je 0x42ec2a
mov dword [esi*4 + 0xf0dee4], ebx
add esi, ebp
cmp esi, 5
jl 0x42ebb0
push 0x6a8fc4
push ebx
push ebx
push 0x421360
push ebx
push ebx
call fcn.0045b593
add esp, 0x18
push ebp
push eax
mov dword [0xf0dee4], eax
call dword [0x47d0a8]
mov eax, ebp
mov ecx, dword [esp + 0xca544]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045a554
add esp, 0xca538
ret
push 0x47edf0
call fcn.00408ae0
add esp, 4
xor eax, eax
jmp 0x42ec11