Function at 0x4b9490
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x5b00cc]
xor eax, esp
mov dword [esp + 0x418], eax
cmp dword [0x5f4c10], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x4b94fd
mov eax, dword [edi + 0x60]
test eax, eax
mov dword [0x5f4c10], edi
je 0x4b94d7
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x4b94ee
mov eax, dword [eax + 0xb8]
test eax, eax
jne 0x4b94c6
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
lea ebx, [ebp + 0x10]
call fcn.004b91b0
add esp, 4
mov eax, dword [0x5f4c14]
test eax, eax
jne 0x4b9578
call fcn.004719f0
mov esi, eax
call fcn.00479330
test eax, eax
mov dword [0x5f4c14], eax
jne 0x4b9578
push eax
push str.sDisplay
push 0x61f
push str.........Common_runctl.cpp
mov eax, 4
call fcn.004f1f50
push eax
push 4
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea ecx, [esp + 0x3c]
push 0x400
push ecx
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4b9573
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x5f4c14]
test edi, edi
mov esi, edi
je 0x4b958b
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4b958b
add ecx, 1
mov dword [edi + 0xc], ecx
xor ebx, ebx
test edi, edi
je 0x4b972b
jmp 0x4b95a5
mov eax, dword [0x5f4c14]
test esi, esi
je 0x4b968a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b968a
mov edx, dword [esi + 4]
cmp dword [edx + 0x28], 0
jle 0x4b968a
mov edx, dword [0x5b4ca0]
mov edx, dword [edx + 0x20]
mov ecx, dword [ecx + edx*8]
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x4b968a
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4b95ea
add ecx, 1
mov dword [esi + 0xc], ecx
test eax, eax
je 0x4b95fb
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4b95fb
add ecx, 1
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x38]
test edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
je 0x4b962e
mov eax, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x68]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [0x5f4c14]
sub edx, dword [0x60dd00]
sub ecx, dword [0x60dcfc]
push edx
push ecx
push eax
push esi
call dword [esp + 0x24]
mov ebx, eax
mov eax, dword [0x5f4c14]
add esp, 0x10
test eax, eax
je 0x4b966d
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x4b966d
add ecx, 0xffffffff
mov dword [eax + 0xc], ecx
jne 0x4b966d
push eax
call fcn.004ff480
mov eax, dword [0x5f4c14]
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x4b968a
add ecx, 0xffffffff
mov dword [esi + 0xc], ecx
jne 0x4b968a
push esi
call fcn.004ff480
mov eax, dword [0x5f4c14]
add esp, 4
test esi, esi
mov edi, esi
je 0x4b96ad
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x4b96ad
add ecx, 0xffffffff
mov dword [esi + 0xc], ecx
jne 0x4b96ad
push esi
call fcn.004ff480
mov eax, dword [0x5f4c14]
add esp, 4
test ebx, ebx
jne 0x4b972b
push ebx
push esi
call fcn.004b9c30
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b95a0
test edi, edi
je 0x4b9726
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4b96dd
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4b96dd
add ecx, 1
mov dword [eax + 0xc], ecx
mov esi, dword [edi + 0x60]
test esi, esi
je 0x4b9726
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call fcn.004b91f0
mov bl, al
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
jle 0x4b970f
add eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4b970f
push esi
call fcn.004ff480
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5f4c14]
push eax
call fcn.0046f600
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 0
jle 0x4b9847
mov edx, dword [0x5f4c14]
add eax, 0xffffffff
push eax
push edx
mov dword [esp + 0x1c], eax
call fcn.0046f5a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b977e
push 0x659
push str.........Common_runctl.cpp
xor esi, esi
mov edx, str.last
lea ecx, [eax + 4]
call fcn.004f1fc0
add esp, 8
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x4b97ab
mov eax, dword [esi + 4]
add dword [esi], 1
add eax, 1
test eax, eax
je 0x4b97b2
push 0x580dcc
push eax
call fcn.00567846
add esp, 8
test eax, eax
jne 0x4b97b2
mov bl, 1
jmp 0x4b97b4
mov eax, 0x57e81c
jmp 0x4b9795
xor bl, bl
test esi, esi
je 0x4b97bd
call fcn.004ab850
test bl, bl
je 0x4b97d7
mov ecx, dword [0x5f4c14]
push edi
push ecx
call fcn.0046f7f0
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x4b97db
mov esi, dword [esp + 0x18]
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x4b97f3
add eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x4b97f3
push edi
call fcn.004ff480
add esp, 4
test esi, esi
jle 0x4b9847
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5f4c14]
push edx
push eax
push ecx
call fcn.004b4fd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4b983e
mov eax, dword [0x5f4c10]
test eax, eax
je 0x4b983e
push eax
call fcn.004e8150
add esp, 4
call fcn.004b98a0
mov edx, dword [0x5f4c10]
push edx
mov byte [esp + 0x17], al
call fcn.004ff540
add esp, 4
push edi
call fcn.004ff540
add esp, 4
mov ecx, dword [0x5f4c14]
xor esi, esi
cmp ecx, esi
mov dword [0x5f4c10], esi
je 0x4b9873
mov eax, dword [ecx + 0xc]
cmp eax, esi
jle 0x4b9873
add eax, 0xffffffff
cmp eax, esi
mov dword [ecx + 0xc], eax
jne 0x4b9873
push ecx
call fcn.004ff480
add esp, 4
mov ecx, dword [esp + 0x424]
mov al, byte [esp + 0x13]
pop edi
mov dword [0x5f4c14], esi
pop esi
pop ebx
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret