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

Disassembly:
push 0xffffffffffffffff
push 0x51a7af
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x78]
cmp byte [eax + 0x41], 0
je 0x405fab
push str.invalid_map_set_T__iterator
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x68], 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00405340
push 0x585884
lea ecx, [esp + 0x3c]
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov ebp, eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], ebp
call fcn.00405630
mov ecx, dword [ebp]
cmp byte [ecx + 0x41], 0
je 0x405fc8
mov edi, dword [ebp + 8]
jmp 0x405fe3
mov edx, dword [ebp + 8]
cmp byte [edx + 0x41], 0
je 0x405fd5
mov edi, ecx
jmp 0x405fe3
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 8]
lea edx, [eax + 8]
cmp eax, ebp
jne 0x40604a
cmp byte [edi + 0x41], 0
mov esi, dword [ebp + 4]
jne 0x405fef
mov dword [edi + 4], esi
mov eax, dword [ebx + 0x18]
cmp dword [eax + 4], ebp
jne 0x405ffc
mov dword [eax + 4], edi
jmp 0x406007
cmp dword [esi], ebp
jne 0x406004
mov dword [esi], edi
jmp 0x406007
mov dword [esi + 8], edi
mov ebx, dword [ebx + 0x18]
cmp dword [ebx], ebp
jne 0x406023
cmp byte [edi + 0x41], 0
je 0x406018
mov eax, esi
jmp 0x406021
push edi
call fcn.00405520
add esp, 4
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x18]
cmp dword [ebx + 8], ebp
jne 0x4060a7
cmp byte [edi + 0x41], 0
je 0x40603c
mov eax, esi
mov dword [ebx + 8], eax
jmp 0x4060a7
push edi
call fcn.00513680
add esp, 4
mov dword [ebx + 8], eax
jmp 0x4060a7
mov dword [ecx + 4], eax
mov ecx, dword [ebp]
mov dword [eax], ecx
cmp eax, dword [ebp + 8]
jne 0x40605b
mov esi, eax
jmp 0x406074
cmp byte [edi + 0x41], 0
mov esi, dword [eax + 4]
jne 0x406067
mov dword [edi + 4], esi
mov dword [esi], edi
mov ecx, dword [ebp + 8]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 4], ebp
jne 0x406081
mov dword [ecx + 4], eax
jmp 0x40608f
mov ecx, dword [ebp + 4]
cmp dword [ecx], ebp
jne 0x40608c
mov dword [ecx], eax
jmp 0x40608f
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
lea ecx, [ebp + 0x40]
add eax, 0x40
cmp eax, ecx
je 0x4060a7
mov bl, byte [ecx]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
mov bl, 1
cmp byte [ebp + 0x40], bl
jne 0x4061b1
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x18]
cmp edi, dword [edx + 4]
je 0x4061ae
cmp byte [edi + 0x40], bl
jne 0x4061ae
mov eax, dword [esi]
cmp edi, eax
jne 0x406138
mov eax, dword [esi + 8]
cmp byte [eax + 0x40], 0
jne 0x4060ee
mov byte [eax + 0x40], bl
push esi
mov byte [esi + 0x40], 0
call fcn.00513630
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
cmp byte [eax + 0x41], 0
jne 0x40616a
mov edx, dword [eax]
cmp byte [edx + 0x40], bl
jne 0x406103
mov edx, dword [eax + 8]
cmp byte [edx + 0x40], bl
je 0x406166
mov edx, dword [eax + 8]
cmp byte [edx + 0x40], bl
jne 0x406121
mov edx, dword [eax]
mov byte [edx + 0x40], bl
push eax
mov byte [eax + 0x40], 0
call fcn.00405540
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
mov dl, byte [esi + 0x40]
mov byte [eax + 0x40], dl
mov byte [esi + 0x40], bl
mov eax, dword [eax + 8]
push esi
mov byte [eax + 0x40], bl
call fcn.00513630
jmp 0x4061ae
cmp byte [eax + 0x40], 0
jne 0x406151
mov byte [eax + 0x40], bl
push esi
mov byte [esi + 0x40], 0
call fcn.00405540
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
cmp byte [eax + 0x41], 0
jne 0x40616a
mov edx, dword [eax + 8]
cmp byte [edx + 0x40], bl
jne 0x40617d
mov edx, dword [eax]
cmp byte [edx + 0x40], bl
jne 0x40617d
mov byte [eax + 0x40], 0
mov eax, dword [ecx + 0x18]
mov edi, esi
mov esi, dword [esi + 4]
cmp edi, dword [eax + 4]
jne 0x4060c2
jmp 0x4061ae
mov edx, dword [eax]
cmp byte [edx + 0x40], bl
jne 0x40619a
mov edx, dword [eax + 8]
mov byte [edx + 0x40], bl
push eax
mov byte [eax + 0x40], 0
call fcn.00513630
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov dl, byte [esi + 0x40]
mov byte [eax + 0x40], dl
mov byte [esi + 0x40], bl
mov eax, dword [eax]
push esi
mov byte [eax + 0x40], bl
call fcn.00405540
mov byte [edi + 0x40], bl
or ecx, 0xffffffff
mov dword [esp + 0x68], ecx
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], ecx
lea ecx, [eax + 8]
call fcn.004e4850
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
add esp, 4
test eax, eax
jbe 0x4061e3
dec eax
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov edx, dword [edx]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc