Function at 0x519080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x41c], esi
je 0x5190cc
cmp dword [eax + 0x10], 0x8000100
je 0x5190cc
push 0x8000100
push ecx
mov ecx, esp
mov dword [ecx], eax
add dword [eax], 1
lea eax, [ebp - 0x408]
push eax
call fcn.00529150
add esp, 0xc
jmp 0x5190d9
test eax, eax
mov dword [ebp - 0x408], eax
je 0x5190d9
add dword [eax], 1
lea ebx, [ebp - 0x408]
lea edi, [ebp + 8]
call fcn.004abdf0
mov eax, dword [ebp - 0x408]
xor edi, edi
cmp eax, edi
je 0x519100
mov esi, eax
call fcn.004ab850
mov esi, dword [ebp - 0x41c]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x51910c
call fcn.00401e20
mov ebx, dword [ebp + 8]
cmp ebx, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
je 0x519124
mov esi, dword [ebx + 4]
add esi, 1
jmp 0x519129
mov esi, 0x57e81c
cmp ebx, edi
mov dword [ebp - 0x408], esi
je 0x519138
mov eax, dword [ebx + 0xc]
jmp 0x51913a
xor eax, eax
cmp dword [ebp + 0xc], 0xff
lea edi, [eax + esi]
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x414], 1
jbe 0x5191b6
push 0
push str._unsigned_long_sepChar___255
push 0x32
push str.........UniversalStringUtils.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 - 0x404]
push 0x400
push ecx
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x5191b6
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
cmp esi, edi
jae 0x5192ea
mov edi, edi
lea esi, [ebp - 0x408]
call fcn.0052ef30
mov ecx, dword [ebp - 0x408]
cmp ecx, edi
jae 0x5191e0
cmp eax, dword [ebp + 0xc]
jne 0x5192de
jmp 0x5191ef
cmp eax, dword [ebp + 0xc]
je 0x5191ef
mov dword [ebp - 0x414], 0
mov edi, ecx
sub edi, dword [ebp - 0x414]
mov dword [ebp - 0x40c], 0
sub edi, dword [ebp - 0x410]
cmp byte [0x5f49d5], 0
jne 0x519222
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea ebx, [ebp - 0x40c]
call fcn.004ab8c0
mov edi, dword [ebp - 0x40c]
test edi, edi
je 0x519260
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x519260
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
push ecx
push eax
add edx, 1
push edx
call fcn.00566500
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x5f3a18
call ebx
test edi, edi
je 0x519278
mov dword [edi + 0x10], 0x8000100
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x40c]
push eax
call fcn.0040c830
test edi, edi
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 0x410], ecx
je 0x5192d5
cmp byte [0x5f49d5], 0
jne 0x5192b5
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add dword [edi], 0xffffffff
jne 0x5192ce
push edi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call ebx
mov edi, dword [ebp - 0x418]
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x408], edi
jb 0x5191c0
test ebx, ebx
je 0x5192f5
mov esi, ebx
call fcn.004ab850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00566120
mov esp, ebp
pop ebp
ret