Function at 0x40d450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414533
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x41b020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
push eax
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], ebx
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__]
lea ecx, [edi + 0x30]
push ecx
mov dword [ebp - 4], ebx
call fcn.00406ab0
mov byte [ebp - 4], 1
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x48], ebx
push 0x3d0
mov dword [edi + 0x54], ebx
mov dword [edi + 0x50], ebx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x40d4e8
call entry0
mov edx, dword [ebp + 0x10]
inc dword [eax + 0x6c]
mov eax, dword [eax + 0x6c]
push edx
push eax
push edi
mov ecx, esi
call fcn.00408d10
jmp 0x40d4ea
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi + 0x10], eax
mov byte [eax + 0x3c4], bl
mov esi, dword [edi + 0x10]
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40d511
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40d513
xor eax, eax
mov dword [esi + 0x1ec], eax
mov dword [eax], edi
mov eax, dword [esi + 0x1ec]
mov dword [eax + 4], 0x40db20
mov esi, dword [edi + 0x10]
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40d542
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x40d544
xor eax, eax
mov dword [esi + 0x1f4], eax
mov dword [eax], edi
mov ecx, dword [esi + 0x1f4]
mov dword [ecx + 4], 0x40dc20
mov esi, dword [edi + 0x10]
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40d571
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x40d573
xor eax, eax
mov dword [esi + 0x1f8], eax
mov dword [eax], edi
mov edx, dword [esi + 0x1f8]
mov dword [edx + 4], 0x40dd40
mov eax, dword [edi + 0x10]
push eax
call fcn.004090a0
call entry0
lea esi, [ebp - 0x28]
call fcn.004065a0
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x40d5ad
mov eax, dword [eax + 4]
jmp 0x40d5b0
add eax, 4
push eax
lea ebx, [ebp + 0xc]
call fcn.0040d3c0
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx + 0x39c]
test eax, eax
je 0x40d5d0
mov eax, dword [eax]
jmp 0x40d5d2
xor eax, eax
push edx
push eax
call fcn.0040d100
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40d621
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40d61a
test esi, esi
je 0x40d61a
mov eax, dword [esi]
test eax, eax
je 0x40d601
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x40d611
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0xc], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc