Function at 0x6d56e4
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 0x6d58ba
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5644
mov esi, eax
mov byte [esi + 0x48], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, edi
call fcn.006576fc
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.006576fc
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 0x6d5772
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jl 0x6d5872
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.006d5d24
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 0x6d580c
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 0x6d57c6
cmp dword [ebp - 0x20], 0
jb 0x6d57e4
jmp 0x6d57c8
jl 0x6d57e4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.006d5d24
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x24], edx
jmp 0x6d57fe
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5d24
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 0x6d586a
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 0x6d5826
cmp dword [ebp - 0x28], 0
jb 0x6d5844
jmp 0x6d5828
jl 0x6d5844
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.006d5d24
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x24], edx
jmp 0x6d585e
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5d24
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 0x6d5780
cmp dword [ebp - 0x24], 0
jne 0x6d5880
cmp dword [ebp - 0x28], 0
jb 0x6d589c
jmp 0x6d5882
jl 0x6d589c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d5d24
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 0x6d58c1
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