Function at 0x51d940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5f3c3c]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
mov dword [ebx], 0x59b060
je 0x51d97e
lea esp, [esp]
cmp dword [eax + 4], ebx
jne 0x51d978
mov dword [eax + 4], edi
mov eax, dword [eax]
cmp eax, edi
jne 0x51d970
mov eax, dword [0x5f3a68]
cmp eax, ebx
jne 0x51d9b0
cmp eax, edi
je 0x51d9a4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xbc]
mov dword [0x5f3a68], edi
call eax
mov byte [0x5f49b2], 1
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x5f3a68]
mov ecx, dword [0x5f2ddc]
cmp ebx, ecx
jne 0x51d9ce
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [0x5f3a68]
xor ecx, ecx
mov dword [0x5f2ddc], ecx
cmp ebx, eax
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
jne 0x51da34
push edi
push str.this___GetFocusPane__
push 0x338
push str.........CommonSubPane.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, [ebp - 0x504]
push 0x400
push ecx
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea edx, [ebp - 0x504]
push edx
push edi
call esi
cmp eax, 2
jne 0x51da2e
push edi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ecx, dword [0x5f2ddc]
cmp ebx, ecx
jne 0x51da8e
push edi
push str.this___currentPane
push 0x339
push str.........CommonSubPane.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 eax, [ebp - 0x504]
push 0x400
push eax
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea ecx, [ebp - 0x504]
push ecx
push edi
call esi
cmp eax, 2
jne 0x51da8e
push edi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
cmp dword [ebx + 0x38], edi
jle 0x51dae9
push edi
push str.mLockCount___0
push 0x33a
push str.........CommonSubPane.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 edx, [ebp - 0x504]
push 0x400
push edx
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea eax, [ebp - 0x504]
push eax
push edi
call esi
cmp eax, 2
jne 0x51dae9
push edi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov esi, dword [ebx + 0x58]
cmp esi, edi
je 0x51db4f
mov ecx, dword [esi]
mov dword [ebx + 0x58], ecx
mov edi, dword [esi + 4]
test edi, edi
je 0x51db3f
cmp byte [0x5f49d5], 0
jne 0x51db17
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test edi, edi
je 0x51db34
add dword [edi], 0xffffffff
jne 0x51db34
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push esi
call fcn.0056612f
mov esi, dword [ebx + 0x58]
add esp, 4
test esi, esi
jne 0x51daf0
mov edi, dword [ebx + 0x5c]
test edi, edi
je 0x51dbb5
mov edx, dword [edi]
mov dword [ebx + 0x5c], edx
mov esi, dword [edi + 4]
test esi, esi
je 0x51dba5
cmp byte [0x5f49d5], 0
jne 0x51db7d
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test esi, esi
je 0x51db9a
add dword [esi], 0xffffffff
jne 0x51db9a
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push edi
call fcn.0056612f
mov edi, dword [ebx + 0x5c]
add esp, 4
test edi, edi
jne 0x51db56
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x51dbdd
mov edi, dword [esi + 4]
test edi, edi
je 0x51dbd4
mov eax, dword [edi]
push eax
call fcn.0056646e
push edi
call fcn.0056646e
add esp, 8
push esi
call fcn.0056612f
add esp, 4
mov edi, dword [ebx + 0x7c]
test edi, edi
je 0x51dc0d
mov eax, dword [edi + 4]
test eax, eax
mov dword [edi], 0x5a00f0
je 0x51dbf8
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x51dc04
call fcn.004ab850
push edi
call fcn.0056612f
add esp, 4
mov edi, dword [ebx + 0x80]
test edi, edi
je 0x51dc40
mov eax, dword [edi + 4]
test eax, eax
mov dword [edi], 0x5a00f0
je 0x51dc2b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x51dc37
call fcn.004ab850
push edi
call fcn.0056612f
add esp, 4
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x51dcb3
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [ebp - 0x104]
push 0x57e900
push edx
call fcn.00567846
add esp, 8
test eax, eax
je 0x51dc8a
lea eax, [ebp - 0x104]
push 0x57ee78
push eax
call fcn.00567846
add esp, 8
test eax, eax
jne 0x51dca9
mov esi, dword [ebx + 0x68]
call fcn.0041a360
test al, al
push 0
push 0
push esi
je 0x51dca3
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x51dca9
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebx + 0x68]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, ebx
call fcn.00486ca0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00566120
mov esp, ebp
pop ebp
ret