Function at 0x410940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
push esi
je 0x410b8e
mov eax, dword [eax]
test eax, eax
je 0x410993
cmp dword [eax + 0x10], 0x8000100
je 0x410993
test eax, eax
push 0x8000100
push ecx
mov ecx, esp
mov dword [ecx], eax
je 0x410982
add dword [eax], 1
lea eax, [ebp - 0x40c]
push eax
call fcn.00529150
add esp, 0xc
jmp 0x4109a0
test eax, eax
mov dword [ebp - 0x40c], eax
je 0x4109a0
add dword [eax], 1
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x40c]
push eax
mov ecx, edi
call edx
mov ecx, dword [edi + 0xc]
mov esi, dword [ecx + eax*4]
xor ebx, ebx
test esi, esi
mov dword [ebp - 0x410], eax
mov byte [ebp - 0x405], bl
mov byte [ebp - 0x406], bl
je 0x410a34
mov edi, edi
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x40c]
push eax
lea ecx, [esi + 8]
push ecx
mov ecx, edi
call edx
test al, al
jne 0x4109f2
mov ebx, esi
mov esi, dword [esi]
test esi, esi
jne 0x4109d0
jmp 0x410a34
test ebx, ebx
je 0x4109fc
mov eax, dword [esi]
mov dword [ebx], eax
jmp 0x410a0a
mov ecx, dword [edi + 0xc]
mov edx, dword [esi]
mov eax, dword [ebp - 0x410]
mov dword [ecx + eax*4], edx
mov eax, dword [edi + 0x18]
test eax, eax
mov byte [ebp - 0x405], 1
je 0x410a34
cmp byte [eax + 8], 0
je 0x410a2d
cmp dword [eax + 0xc], esi
jne 0x410a2d
mov ecx, dword [esi + 4]
mov dword [eax + 0xc], ecx
mov byte [eax + 8], 0
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x410a18
mov esi, dword [edi + 0x10]
xor ebx, ebx
test esi, esi
je 0x410adc
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x40c]
push eax
lea ecx, [esi + 8]
push ecx
mov ecx, edi
call edx
test al, al
jne 0x410a64
mov ebx, esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x410a41
jmp 0x410adc
test ebx, ebx
je 0x410a70
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
jmp 0x410a76
mov ecx, dword [esi + 4]
mov dword [edi + 0x10], ecx
cmp dword [edi + 0x14], esi
jne 0x410a7e
mov dword [edi + 0x14], ebx
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x410ac8
cmp byte [0x5f49d5], 0
jne 0x410aa0
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [0x5f49d5], 1
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test ebx, ebx
je 0x410abd
add dword [ebx], 0xffffffff
jne 0x410abd
push ebx
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push esi
call fcn.0056612f
add esp, 4
add dword [edi + 8], 0xffffffff
mov byte [ebp - 0x406], 1
mov dl, byte [ebp - 0x406]
cmp byte [ebp - 0x405], dl
je 0x410b41
push 0
push str.foundInHash__foundInOrder
push 0x1f7
push str.c:RBUniversalStringMap.h
push str.Failed_Assertion
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 - 0x404]
push 0x400
push eax
call fcn.00567446
add esp, 0x24
push 0x111
push str.Runtime_Error
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x410b41
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov esi, dword [ebp - 0x40c]
test esi, esi
je 0x410b8e
cmp byte [0x5f49d5], 0
jne 0x410b66
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 0x410b83
add dword [esi], 0xffffffff
jne 0x410b83
push esi
call fcn.0056646e
add esp, 4
push 0x5f3a18
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00566120
mov esp, ebp
pop ebp
ret 4