Function at 0x4fef0c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
mov edx, dword [0x4a33f8]
call fcn.004060cc
xor eax, eax
push ebp
push 0x4ff23a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x4ff202
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x518dcc]
cmp dword [eax], 0
je 0x4fef6e
mov eax, dword [0x518dcc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
call fcn.00406abc
test eax, eax
jne 0x4fef78
call fcn.00404e08
jmp 0x4ff209
mov eax, dword [0x518dcc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
call fcn.00406ac4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4ff1f4
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, dword [0x518dcc]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x10]
lea edx, [ecx + edx*8]
mov ecx, dword [0x4a33f8]
call fcn.00406400
mov eax, dword [ebp - 0x44]
call fcn.00406abc
test eax, eax
je 0x4ff1e8
mov eax, dword [ebp - 0x44]
call fcn.00406abc
dec eax
jne 0x4fefe2
mov byte [ebp - 0x25], 0
jmp 0x4fefe6
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x44]
call fcn.00406ac4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ff1e8
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
imul eax, dword [ebp - 0x10], 0x1a
mov edx, dword [ebp - 0x44]
cmp byte [edx + eax*8 + 0xc1], 0
je 0x4ff1dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x10], 0x1a
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + eax*8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4ff1dc
mov dl, 1
mov eax, dword [0x4fbfb4]
call fcn.004fc0f0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 4
imul edx, dword [ebp - 0x10], 0x1a
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + edx*8]
call fcn.00405420
mov eax, dword [ebp - 0x1c]
add eax, 8
imul edx, dword [ebp - 0x10], 0x1a
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + edx*8 + 4]
call fcn.00405420
mov eax, dword [ebp - 0x1c]
add eax, 0xc
imul edx, dword [ebp - 0x10], 0x1a
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + edx*8 + 0x10]
call fcn.00405420
imul eax, dword [ebp - 0x10], 0x1a
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*8 + 0xc2]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x10
imul edx, dword [ebp - 0x10], 0x1a
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + edx*8 + 0x14]
call fcn.00405420
imul eax, dword [ebp - 0x10], 0x1a
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + eax*8 + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.004fc1cc
mov dl, byte [ebp - 0x25]
mov eax, dword [ebp - 0x1c]
call fcn.004fc1f0
imul eax, dword [ebp - 0x10], 0x1a
mov edx, dword [ebp - 0x44]
cmp byte [edx + eax*8 + 0xcf], 0
je 0x4ff112
mov eax, dword [ebp - 0x1c]
add eax, 0x28
imul edx, dword [ebp - 0x10], 0x1a
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + edx*8 + 0x3d]
mov ecx, dword [0x4a2b34]
call fcn.00406400
jmp 0x4ff12e
mov eax, dword [ebp - 0x1c]
add eax, 0x28
imul edx, dword [ebp - 0x10], 0x1a
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + edx*8 + 0x1c]
mov ecx, dword [0x4a2b34]
call fcn.00406400
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4ff195
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
add eax, 0x28
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004fe4c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff1dc
inc dword [ebp - 0x10]
dec dword [ebp - 0x30]
jne 0x4ff007
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x4fefa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff209
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff241
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004053f0
lea eax, [ebp - 0x50]
mov edx, dword [0x4a33f8]
call fcn.0040619c
lea eax, [ebp - 0x40]
call fcn.004053cc
ret