Function at 0x10197625
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x101dc354]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x24], eax
mov ebx, ecx
mov eax, dword [ebp + 0x1c]
mov ecx, 0x101db024
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0x6c], al
mov dword [esp + 0x4c], 1
call fcn.101d0aaf
test al, 0xe
je 0x101976ba
xor ecx, ecx
lea eax, [esp + 0x44]
push ecx
push ecx
push ecx
push ecx
push 0x101db024
push 0x10080d18
push ebx
push fcn.101cf0c0
push eax
push ecx
lea eax, [esp + 0x70]
push eax
call fcn.1017afeb
add esp, 0x2c
mov ebx, dword [ebp + 8]
test ebx, 0xfffffff0
je 0x101976c6
int3
cmp dword [esp + 0x34], 0
jne 0x101976fb
test bl, 4
je 0x101976d7
test edi, edi
jne 0x101976d7
int3
test bl, 8
je 0x101976e4
cmp dword [esp + 0x2c], 0
jne 0x101976e4
int3
test bl, 2
je 0x101976f1
cmp dword [esp + 0x28], 0
jne 0x101976f1
int3
test bl, 1
je 0x101976fb
test esi, esi
jne 0x101976fb
int3
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp dword [ecx + 0x10], eax
jne 0x10197707
int3
mov esi, eax
mov dword [esp + 0x3c], eax
mov edi, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3c]
push eax
push ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], edi
call fcn.101974a1
mov dword [esp + 0x24], eax
test eax, eax
js 0x10197788
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x30], esi
jne 0x1019775a
cmp dword [esp + 0x28], esi
jne 0x1019775a
cmp dword [esp + 0x10], esi
jne 0x1019775a
cmp dword [esp + 0x2c], esi
je 0x10197876
push ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x4c]
call fcn.101b6ae4
mov dword [esp + 0x24], eax
test eax, eax
jns 0x101977ea
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], eax
call fcn.101b67a5
lea ecx, [esp + 0x18]
call fcn.101b67a5
test edi, edi
je 0x101977b8
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x101977cf
mov ecx, dword fs:[0x30]
push esi
push 0
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea ecx, [esp + 0x3c]
call fcn.101b67c7
lea ecx, [esp + 0x48]
call fcn.10179b95
mov eax, dword [esp + 0x24]
jmp 0x101978f1
mov edx, dword [esp + 0x38]
test bl, 1
je 0x1019780e
test dl, 1
je 0x1019780e
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1019780e
mov eax, dword [esp + 0xc]
mov esi, dword [ecx]
mov dword [esp + 0xc], esi
mov dword [ecx], eax
jmp 0x10197812
mov esi, dword [esp + 0xc]
test bl, 2
je 0x1019782e
test dl, 2
je 0x1019782e
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1019782e
mov eax, dword [esp + 0x1c]
mov edi, dword [ecx]
mov dword [ecx], eax
jmp 0x10197832
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test bl, 4
je 0x10197854
test dl, 4
je 0x10197854
test eax, eax
je 0x10197854
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
test bl, 8
je 0x10197872
test dl, 8
je 0x10197872
test eax, eax
je 0x10197872
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x10197894
mov eax, dword [edx]
mov dword [edx], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x40], eax
mov dword [edx + 4], ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 1
call fcn.101b67a5
lea ecx, [esp + 0x18]
call fcn.101b67a5
test edi, edi
je 0x101978c5
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x101978db
mov eax, dword fs:[0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea ecx, [esp + 0x3c]
call fcn.101b67c7
lea ecx, [esp + 0x48]
call fcn.10179b95
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b88c0
mov esp, ebp
pop ebp
ret 0x18