Function at 0x100537a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012b258
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x101791e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1401
push dword [ebp + 0x18]
mov dword [ebp - 0x10], 0
call fcn.10017f00
mov ebx, dword [ebp + 0x14]
add esp, 8
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
mov ecx, edi
mov dword [ebp - 0x20], edx
call fcn.10056c70
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.1001a110
mov eax, dword [edi]
lea ecx, [ebp - 0x44]
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x44]
push eax
mov edx, dword [edx + 0x50]
call edx
test al, al
je 0x10053867
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push 0
push 0
push eax
mov ecx, edi
call dword [esi + 0x44]
push eax
mov eax, dword [esi + 0x50]
mov ecx, edi
call eax
test al, al
je 0x10053867
mov cl, 1
jmp 0x10053869
xor cl, cl
mov eax, dword [ebp + 0x14]
mov al, byte [eax + 0x14]
test al, al
je 0x1005394a
test cl, cl
je 0x1005394a
mov ecx, dword [edi + 4]
call fcn.10036a00
cmp byte [eax + 2], 0
jne 0x1005394a
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x54]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test eax, eax
je 0x100538da
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x18]
mov dword [esi], eax
call fcn.100035b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0x10]
mov eax, dword [edi + esi*4 + 0x14]
mov byte [eax + 0x1c], 0
cmp dword [ebx + 8], 0
je 0x10053940
cmp dword [ebx + 0xc], 0
je 0x10053940
push esi
mov ecx, edi
call fcn.10056b80
test al, al
je 0x10053940
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x38]
push esi
push dword [edi + 0x10]
mov eax, dword [ecx]
push edx
push dword [ebp + 0x18]
lea edx, [ebp - 0x2c]
push ebx
push dword [ebp + 0x1c]
push edx
call dword [eax + 0xec]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x2c]
mov dword [eax + 4], 0
call fcn.100035b0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100538aa
lea ecx, [ebp - 0x18]
call fcn.100035b0
jmp 0x100539bd
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x20]
mov ecx, dword [edi + ecx*4 + 0x14]
push eax
call fcn.100412c0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10053988
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp - 0x1c]
mov byte [edi + 0xc], 1
test esi, esi
je 0x100539bd
cmp dword [esi + 0x14], 0x10
jb 0x100539a3
push dword [esi]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push esi
mov byte [esi], 0
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18