Function at 0x6d57bc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
xor edx, edx
push ebp
push 0x6d5992
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d571c
mov esi, eax
mov byte [esi + 0x48], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, edi
call fcn.00657700
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
call fcn.00657700
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov eax, ebx
test eax, eax
je 0x6d584a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jl 0x6d594a
inc esi
xor edi, edi
mov eax, dword [ebx + edi*8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + edi*8 + 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.006d5dfc
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
cmp byte [eax + 0x48], 2
jne 0x6d58e4
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x6d589e
cmp dword [ebp - 0x20], 0
jb 0x6d58bc
jmp 0x6d58a0
jl 0x6d58bc
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.006d5dfc
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x24], edx
jmp 0x6d58d6
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5dfc
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x6d5942
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x1c], edx
cmp dword [ebp - 0x24], 0
jne 0x6d58fe
cmp dword [ebp - 0x28], 0
jb 0x6d591c
jmp 0x6d5900
jl 0x6d591c
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.006d5dfc
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x24], edx
jmp 0x6d5936
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5dfc
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
inc edi
dec esi
jne 0x6d5858
cmp dword [ebp - 0x24], 0
jne 0x6d5958
cmp dword [ebp - 0x28], 0
jb 0x6d5974
jmp 0x6d595a
jl 0x6d5974
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5dfc
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d5999
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 4]
pop eax
jmp eax