Function at 0x503eb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x5b00cc]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
lea ecx, [ecx]
mov eax, dword [0x5f3a90]
xor ecx, ecx
test eax, eax
je 0x503ef5
jmp 0x503ee0
cmp byte [eax + 0x2d], 0
jne 0x503eee
add ecx, 1
cmp ecx, 1
jg 0x503f25
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x503ee0
cmp byte [ebp + 8], 0
je 0x503f0b
call fcn.00503e50
test eax, eax
je 0x503f0b
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, 0x5c2a9c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
call fcn.00504dd0
test al, al
jne 0x503ff8
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call fcn.00503b90
mov edi, dword [0x5f5210]
xor ecx, ecx
test edi, edi
mov dword [esp + 0x14], eax
jbe 0x503fcb
jmp 0x503f58
mov eax, dword [esp + 0x14]
cmp ecx, edi
jb 0x503f65
lea edi, [ecx + 1]
mov dword [0x5f5210], edi
mov edx, dword [0x5f520c]
mov edx, dword [edx + ecx*4]
mov esi, dword [edx]
cmp dword [esi + 0x24], 0
jne 0x503fa6
cmp eax, dword [esi + 0x1c]
jae 0x503f99
cmp eax, dword [esi + 0x20]
jb 0x503f99
cmp dword [esp + 0x10], 0xffffffff
jne 0x503fa6
cmp byte [esi + 0x2c], 0
je 0x503fa6
cmp byte [edx + 4], 0
jne 0x503fa6
mov dword [esp + 0x10], ecx
jmp 0x503fa6
cmp byte [edx + 4], 0
je 0x503faf
cmp ebx, 0xffffffff
jne 0x503fa6
mov ebx, ecx
add ecx, 1
cmp ecx, edi
jb 0x503f54
jmp 0x503fb3
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jle 0x503fc0
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0xffffffff
jne 0x50405d
call fcn.00503e10
cmp ebx, 0xffffffff
mov dword [esp + 0xc], ebx
jne 0x504040
cmp byte [ebp + 8], 0
je 0x504029
call fcn.00503e50
test eax, eax
je 0x503ed0
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x503ed0
cmp byte [0x5f57b0], 0
jne 0x504029
push 0x2aa
push str.........CommonClassLibRuntimeThread.cpp
mov esi, str.Infinite_loop_detected_in_the_thread_scheduler.__This_is_likely_caused_by_incorrectly_locking_resources_with_semaphores_or_critical_sections.
mov edx, str.false
mov ecx, 4
mov byte [0x5f57b0], 1
call fcn.004f1fc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov edi, dword [0x5f5210]
cmp ebx, edi
jb 0x504053
lea edi, [ebx + 1]
mov dword [0x5f5210], edi
mov eax, dword [0x5f520c]
mov ecx, dword [eax + ebx*4]
mov esi, dword [ecx]
test esi, esi
jne 0x5040bb
push esi
push str.possibleThread
push 0x30a
push str.........CommonClassLibRuntimeThread.cpp
lea eax, [esi + 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 edx, [esp + 0x34]
push 0x400
push edx
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x5040b5
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov edi, dword [0x5f5210]
mov eax, dword [esp + 0xc]
cmp eax, edi
jb 0x5040cc
lea ecx, [eax + 1]
mov dword [0x5f5210], ecx
mov edx, dword [0x5f520c]
mov eax, dword [edx + eax*4]
mov ecx, dword [esp + 0x41c]
mov byte [eax + 4], 1
pop edi
mov dword [esi + 0x30], 0
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret