Function at 0x518510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e0878
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
cmp byte [eax + 0x11], 0
je 0x51858d
push 0x1b
xor esi, esi
push str.invalid_map_set_T__iterator
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
call fcn.0040b860
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], esi
call fcn.00405320
push 0x62a5c8
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], vtable.std::out_of_range.0
call fcn.005bed88
mov ebx, eax
lea esi, [esp + 0x78]
mov dword [esp + 0x18], ebx
call fcn.00519d60
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
je 0x5185a9
mov edi, dword [ebx + 8]
jmp 0x5185c1
mov edx, dword [ebx + 8]
cmp byte [edx + 0x11], 0
je 0x5185b6
mov edi, eax
jmp 0x5185c1
mov ecx, dword [esp + 0x7c]
cmp ecx, ebx
mov edi, dword [ecx + 8]
jne 0x518637
cmp byte [edi + 0x11], 0
mov esi, dword [ebx + 4]
jne 0x5185cd
mov dword [edi + 4], esi
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
cmp dword [eax + 4], ebx
jne 0x5185de
mov dword [eax + 4], edi
jmp 0x5185e9
cmp dword [esi], ebx
jne 0x5185e6
mov dword [esi], edi
jmp 0x5185e9
mov dword [esi + 8], edi
mov ebp, dword [edx + 4]
cmp dword [ebp], ebx
jne 0x518612
cmp byte [edi + 0x11], 0
je 0x5185fb
mov ecx, esi
jmp 0x51860f
mov eax, dword [edi]
cmp byte [eax + 0x11], 0
mov ecx, edi
jne 0x51860f
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x11], 0
je 0x518605
mov dword [ebp], ecx
mov ebp, dword [edx + 4]
cmp dword [ebp + 8], ebx
jne 0x518696
cmp byte [edi + 0x11], 0
je 0x518627
mov eax, esi
mov dword [ebp + 8], eax
jmp 0x518696
mov eax, edi
call fcn.004f3ce0
mov edx, dword [esp + 0x70]
mov dword [ebp + 8], eax
jmp 0x518696
mov dword [eax + 4], ecx
mov eax, dword [ebx]
mov dword [ecx], eax
cmp ecx, dword [ebx + 8]
jne 0x518647
mov esi, ecx
jmp 0x518661
cmp byte [edi + 0x11], 0
mov esi, dword [ecx + 4]
jne 0x518653
mov dword [edi + 4], esi
mov dword [esi], edi
mov edx, dword [ebx + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 8]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
cmp dword [eax + 4], ebx
jne 0x518672
mov dword [eax + 4], ecx
jmp 0x518680
mov eax, dword [ebx + 4]
cmp dword [eax], ebx
jne 0x51867d
mov dword [eax], ecx
jmp 0x518680
mov dword [eax + 8], ecx
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dl, byte [ebx + 0x10]
mov al, byte [ecx + 0x10]
mov byte [ecx + 0x10], dl
mov edx, dword [esp + 0x70]
mov byte [ebx + 0x10], al
mov ebp, dword [esp + 0x18]
mov ebx, 1
cmp byte [ebp + 0x10], bl
jne 0x5187ab
mov eax, dword [edx + 4]
cmp edi, dword [eax + 4]
je 0x5187a8
cmp byte [edi + 0x10], bl
jne 0x5187a8
mov ecx, dword [esi]
cmp edi, ecx
jne 0x51872e
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x10], 0
jne 0x5186e2
mov byte [ecx + 0x10], bl
push edx
mov ecx, esi
mov byte [esi + 0x10], 0
call fcn.004f0780
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x70]
cmp byte [ecx + 0x11], 0
jne 0x518762
mov eax, dword [ecx]
cmp byte [eax + 0x10], bl
jne 0x5186f7
mov eax, dword [ecx + 8]
cmp byte [eax + 0x10], bl
je 0x51875e
mov eax, dword [ecx + 8]
cmp byte [eax + 0x10], bl
jne 0x518715
mov eax, dword [ecx]
mov byte [eax + 0x10], bl
push edx
mov byte [ecx + 0x10], 0
call fcn.004f3dc0
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x70]
mov al, byte [esi + 0x10]
mov byte [ecx + 0x10], al
mov byte [esi + 0x10], bl
mov ecx, dword [ecx + 8]
mov byte [ecx + 0x10], bl
push edx
mov ecx, esi
call fcn.004f0780
jmp 0x5187a8
cmp byte [ecx + 0x10], 0
jne 0x518749
mov byte [ecx + 0x10], bl
push edx
mov ecx, esi
mov byte [esi + 0x10], 0
call fcn.004f3dc0
mov ecx, dword [esi]
mov edx, dword [esp + 0x70]
cmp byte [ecx + 0x11], 0
jne 0x518762
mov eax, dword [ecx + 8]
cmp byte [eax + 0x10], bl
jne 0x518775
mov eax, dword [ecx]
cmp byte [eax + 0x10], bl
jne 0x518775
mov byte [ecx + 0x10], 0
mov ecx, dword [edx + 4]
mov edi, esi
cmp edi, dword [ecx + 4]
mov esi, dword [esi + 4]
jne 0x5186b4
jmp 0x5187a8
mov eax, dword [ecx]
cmp byte [eax + 0x10], bl
jne 0x518792
mov eax, dword [ecx + 8]
mov byte [eax + 0x10], bl
push edx
mov byte [ecx + 0x10], 0
call fcn.004f0780
mov ecx, dword [esi]
mov edx, dword [esp + 0x70]
mov al, byte [esi + 0x10]
mov byte [ecx + 0x10], al
mov byte [esi + 0x10], bl
mov ecx, dword [ecx]
mov byte [ecx + 0x10], bl
push edx
mov ecx, esi
call fcn.004f3dc0
mov byte [edi + 0x10], bl
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5187d3
add eax, 4
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x5187d3
test eax, eax
je 0x5187d3
lea ecx, [eax - 4]
test ecx, ecx
je 0x5187d3
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebx
call eax
push ebp
call fcn.0059b877
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 8]
add esp, 4
test eax, eax
jbe 0x5187ed
add eax, 0xffffffff
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10