Function at 0x42703a
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
xor eax, eax
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [esp + 0x18], eax
mov edi, dword [esi + 0x1c]
lea edx, [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], esi
call fcn.0041c9a2
test eax, eax
js 0x4272a9
test byte [esi + 0x20], 2
mov esi, dword [esp + 0xc]
je 0x4270cb
lea eax, [esp + 0x24]
mov edx, 0x40d454
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 3
push 0x40acd0
call fcn.00422d0e
test eax, eax
js 0x4270cb
mov eax, dword [edi + 4]
cmp eax, dword [esp + 0x24]
jne 0x4270cb
push eax
push dword [esp + 0x20]
push edi
call dword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp eax, dword [edi + 4]
je 0x4270eb
push dword [edi + 4]
mov edx, edi
mov ecx, esi
call fcn.00420a03
mov dword [esp + 0x20], eax
test eax, eax
js 0x427286
mov eax, dword [esp + 0x2c]
or dword [eax + 0x20], 2
mov eax, dword [edi + 0x10]
add eax, edi
mov ecx, eax
mov dword [esp + 0x28], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x30]
jne 0x4270f9
sub ecx, edx
mov edx, 0x12000004
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push ecx
mov ecx, esi
call fcn.0041d0ec
cmp eax, 0xc0000023
jne 0x427164
push dword [esp + 0x14]
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0xc]
mov ebx, eax
test ebx, ebx
je 0x427188
lea eax, [esp + 0x14]
mov edx, 0x12000004
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0041d0ec
test eax, eax
js 0x427188
test ebx, ebx
je 0x427188
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
jne 0x427188
push eax
push ebx
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp eax, dword [esp + 0x20]
je 0x4271ad
push 1
mov edx, 0x12000004
mov ecx, esi
call fcn.0041d50c
push dword [esp + 0x20]
xor eax, eax
mov edx, 0x12000004
push dword [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0041d2f6
mov eax, dword [edi + 0x14]
cmp dword [eax + edi + 8], 4
jne 0x427242
add edi, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
lea ecx, [edi + 0xc]
call fcn.00428298
test eax, eax
js 0x427209
push 1
mov edx, 0x11000001
mov ecx, esi
call fcn.0041d50c
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x14]
call fcn.00428542
push dword [esp + 0x30]
xor eax, eax
mov edx, 0x11000001
push dword [esp + 0x14]
mov ecx, esi
push eax
call fcn.0041d2f6
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x1c]
lea ecx, [edi + 0xc]
call fcn.004283fe
test eax, eax
js 0x427242
mov edi, 0x12000002
mov ecx, esi
push 1
mov edx, edi
call fcn.0041d50c
push dword [esp + 0x34]
xor eax, eax
mov edx, edi
push dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0041d2f6
xor eax, eax
mov edi, eax
cmp dword [esp + 0x10], eax
je 0x427266
push dword [esp + 0x10]
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0x18], edi
je 0x42728a
push dword [esp + 0x18]
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0xc]
jmp 0x42728a
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x1c], 0
je 0x4272af
push dword [esp + 0x1c]
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x4272ab
mov edi, eax
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4272ba
mov ecx, esi
call fcn.0041cc06
test ebx, ebx
je 0x4272d1
push ebx
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret