Function at 0x4656e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ca00
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c4104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x30]
call fcn.0043e490
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0046c5e0
push dword [ebx + 0x28]
call fcn.0051a89c
mov ecx, dword [ebx + 0x24]
or esi, 0xffffffff
add esp, 4
sub ecx, 0x10
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46577d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x465779
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x465772
push 0
push dword [edx + 4]
call edi
jmp 0x46577d
mov ecx, edx
call dword [ebp - 0x10]
jmp 0x46577d
mov ecx, edx
call edi
mov ecx, dword [ebx + 0x20]
mov eax, esi
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4657ca
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4657c6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4657bf
push 0
push dword [edx + 4]
call edi
jmp 0x4657ca
mov ecx, edx
call dword [ebp - 0x10]
jmp 0x4657ca
mov ecx, edx
call edi
mov ecx, dword [ebx + 0x1c]
mov eax, esi
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x465817
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x465813
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46580c
push 0
push dword [edx + 4]
call edi
jmp 0x465817
mov ecx, edx
call dword [ebp - 0x10]
jmp 0x465817
mov ecx, edx
call edi
mov ecx, dword [ebx + 0x18]
mov eax, esi
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x465864
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x465860
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x465859
push 0
push dword [edx + 4]
call edi
jmp 0x465864
mov ecx, edx
call dword [ebp - 0x10]
jmp 0x465864
mov ecx, edx
call edi
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x46588a
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46588a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46588a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x4658b0
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4658b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4658b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4658d5
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4658d5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4658d5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret