Function at 0x85cfc8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x85cfd0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x85d23c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x85d1e0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x470]
call fcn.006519b0
call fcn.0049ea54
lea edx, [ebp - 0xc]
call fcn.0040b818
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x4f8]
mov eax, dword [eax + 0x30]
xor ecx, ecx
call fcn.008b47e4
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x5fc]
push dword [eax + 0x38]
push 0x85d250
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00405594
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004056f0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404f0c
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00458cdc
or edx, 0xffffffff
mov eax, ebx
call fcn.00860050
mov edi, dword [ebx + 0x598]
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, edi
call fcn.0040b818
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x4f8]
mov eax, dword [eax + 0x34]
xor ecx, ecx
call fcn.008b47e4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x430]
call fcn.00458cdc
push 0
push 0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x430]
call fcn.00458cac
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x4f4]
mov eax, dword [eax + 0x94]
mov edx, dword [ebp - 4]
call fcn.008b47e4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x460]
call fcn.00458cdc
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040b818
mov eax, dword [ebx + 0x490]
mov dword [eax + 0xc], 1
mov edx, dword [eax]
call dword [edx + 0xc8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x490]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x85d161
mov eax, dword [ebx + 0x490]
mov esi, dword [eax + 0x23c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
inc eax
lea edx, [ebp - 0x30]
call fcn.0040b818
push dword [ebp - 0x30]
push 0x85d260
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405004
mov edx, dword [ebp - 0x2c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x490]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp edi, eax
jg 0x85d123
mov eax, dword [ebx + 0x490]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x85d1cb
cmp dword [ebp - 8], 0
jge 0x85d1a3
mov eax, dword [ebx + 0x490]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xcc]
jmp 0x85d1cb
mov esi, dword [ebx + 0x490]
mov eax, dword [esi + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov eax, dword [ebp - 8]
call fcn.00437efc
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebx + 0x490]
xor edx, edx
mov dword [eax + 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x85d1ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x85d243
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404ca0
lea eax, [ebp - 0x28]
call fcn.00404c7c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ca0
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004053c8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404ca0
lea eax, [ebp - 4]
call fcn.00404c7c
ret