Function at 0x42e4e0
Capabilities:
Create thread

Disassembly:
mov eax, 0xca538
call fcn.0045d1f0
mov eax, dword [0x492794]
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.0042e9b0
push 0x14
push str.MaxLayer
push str.WindowState
call fcn.004011d0
push 5
push str.MaxChildLayer
push str.WindowState
mov dword [0x6999d4], eax
call fcn.004011d0
push 0x14
push str.MaxCharLayer
push str.WindowState
mov dword [0x9f4c78], eax
call fcn.004011d0
push 0x103f964
push str.MesWaitCursor
push str.WindowState
mov dword [0x6999d0], 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 [0x13388a8], 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 [0x103f98c], edx
je 0x42e73a
cmp ebp, ebx
je 0x42e73a
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 0x42e5d4
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 0x42e5f0
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42e600
lea edi, [esp + 0xc7544]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x42e615
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 0x42e633
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 0x42e650
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 0x42e671
mov ecx, dword [str..idx]
mov dl, byte [0x482050]
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 0x42e695
mov ecx, dword [str..pak]
mov dl, byte [0x482048]
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.0045d1f0
lea edx, [esp + 0x63ab8]
mov edi, esp
mov ecx, 0x18ea6
mov esi, 0x806b50
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0041e280
add esp, 0x63aa4
push eax
lea eax, [esp + 0x63ab4]
push eax
call fcn.0045d970
push 0x63a98
lea ecx, [esp + 0x63abc]
push ecx
push 0x806b50
call fcn.0045d970
add esp, 0x18
cmp dword [0x808b50], ebp
jne 0x42e734
push 0x482014
call fcn.00408d80
add esp, 4
xor eax, eax
jmp 0x42e981
mov edi, dword [esp + 0x10]
jmp 0x42e73d
or ebp, 0xffffffff
call fcn.004316e0
mov eax, 0x7cb014
jmp 0x42e750
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 0x42e767
mov dword [eax - 0x10cc], ebx
mov dword [eax - 0xc8], ebx
mov byte [eax - 0x10d0], bl
add eax, 0x4e94
cmp eax, 0x7fc1dc
jl 0x42e750
mov ebp, 1
mov dword [0x740024], ebp
mov eax, 0x74034c
mov byte [eax], bl
add eax, 0x226
cmp eax, 0x7418c8
jl 0x42e7a2
mov dword [0x740020], ebx
mov dword [0x7fd9f8], ebx
mov byte [0x7c9f1c], bl
mov dword [0x7c9f20], ebx
mov dword [0x7c9f24], ebx
mov dword [0x7c9f28], ebx
mov dword [0x806a2c], ebx
mov dword [0x806a34], ebx
mov dword [0x806a30], ebx
mov dword [0x806a4c], ebx
mov dword [0x806a50], ebp
mov dword [0x806a48], ebx
mov esi, 0x1e
lea ecx, [ecx]
push 0x1e690
push ebx
push 0x71eaa0
call fcn.0045d240
add esp, 0xc
sub esi, ebp
jne 0x42e800
push ebx
push 0xa6fda0
push str.IniScriptPri.dat
mov byte [0x7fb486], bl
mov dword [0x73d130], 0xffffff
mov dword [0x73d134], ebx
mov dword [0x73d138], 0xc0c0c0
mov dword [0x73d13c], ebx
call fcn.00420b70
mov edx, dword [str.IniScriptPri.dat]
mov eax, dword [0x482004]
mov ecx, dword [0x482008]
mov dword [0x7caf50], edx
mov edx, dword [0x48200c]
mov dword [0x7caf54], eax
mov al, byte [0x482010]
add esp, 0xc
mov dword [0x7caf58], ecx
mov dword [0x7caf5c], edx
mov byte [0x7caf60], al
mov dword [0x7c9f48], ebx
mov dword [0x7caf4c], ebx
mov byte [0x7c9f44], 1
call fcn.0041ceb0
push ebx
call dword [0x47f348]
cmp eax, dword [0x492438]
jne 0x42e8c5
push ebx
push ebx
push 0x404
push edi
call dword [0x47f334]
mov dword [0xff4aa4], ebp
jmp 0x42e8db
cmp dword [0xff4aa4], ebp
jne 0x42e8db
push ebx
push ebx
push 0x400
push edi
call dword [0x47f334]
push 0x1f4
call dword [0x47f0b8]
mov ecx, dword [0xff4aa8]
mov edx, dword [ecx*4 + 0x174a9d0]
push edx
push 0xfffffffffffffff4
push edi
call dword [0x47f328]
mov eax, dword [0xff4aa8]
mov ecx, dword [eax*4 + 0x174a9d0]
push ecx
call dword [0x47f324]
mov edi, dword [0x47f0e0]
xor esi, esi
jmp 0x42e920
push esi
lea edx, [esp + 0xc9548]
push str.EAGLS_EVENT_HANDLER__d
push edx
call fcn.0045d367
add esp, 0xc
lea eax, [esp + 0xc9544]
push eax
push ebx
push ebp
push ebx
call edi
cmp eax, ebx
mov dword [esi*4 + 0x103f93c], eax
je 0x42e99a
mov dword [esi*4 + 0x11adaf0], ebx
add esi, ebp
cmp esi, 0xa
jl 0x42e920
push 0x86a5e8
push ebx
push ebx
push 0x421620
push ebx
push ebx
call fcn.0045e213
add esp, 0x18
push ebp
push eax
mov dword [0x11adaf0], eax
call dword [0x47f0e4]
mov eax, ebp
mov ecx, dword [esp + 0xca544]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d1d4
add esp, 0xca538
ret
push 0x480e10
call fcn.00408bb0
add esp, 4
xor eax, eax
jmp 0x42e981