Function at 0x4cd850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c85bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, 0x68b2c8
push edi
lea edi, [esi + 0x1b4]
sub ebx, esi
mov dword [ebp - 0x10], 9
mov eax, dword [ebx + edi]
push 1
push 0
push 1
push eax
lea ecx, [edi + 0x24]
push ecx
mov ecx, dword [0x68cfa0]
call fcn.005a8120
mov dword [edi], eax
add edi, 4
dec dword [ebp - 0x10]
jne 0x4cd884
mov ecx, dword [esi + 0x294]
test ecx, ecx
je 0x4cd8b8
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea edi, [esi + 0x29c]
mov ebx, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4cd8d0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
add edi, 8
dec ebx
jne 0x4cd8c3
mov ecx, dword [esi + 0x2c4]
test ecx, ecx
je 0x4cd8e7
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x2e4]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
test ecx, ecx
je 0x4cd907
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
jmp 0x4cd99a
mov ecx, dword [esi + 0x2cc]
test ecx, ecx
je 0x4cd99a
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x4cd99a
cmp byte [eax + 0x1ac], 0
je 0x4cd99a
call fcn.004e3620
cmp eax, ebx
jl 0x4cd99a
mov ecx, dword [esi + 0x2cc]
push ebx
call fcn.004e3f60
mov edi, eax
test edi, edi
js 0x4cd99a
push 0x1a4
call fcn.0052d4ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4cd972
mov ecx, dword [esi + 0x2c4]
add edi, 2
push edi
push ecx
mov ecx, eax
call fcn.004e2680
jmp 0x4cd974
xor eax, eax
mov ecx, dword [0x68a3ec]
push eax
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004cefa0
mov edi, dword [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00480390
mov ecx, dword [edi]
call fcn.004f8df0
add dword [ebp - 0x10], 8
inc ebx
cmp ebx, 8
jl 0x4cd8f2
xor ebx, ebx
cmp dword [0x68afbc], ebx
jle 0x4cda19
lea edi, [esi + 0x34c]
jmp 0x4cd9c0
mov eax, dword [ebx*4 + 0x6907b4]
mov ecx, dword [edi]
cmp dword [ecx + 0x1a4], eax
je 0x4cda04
mov edx, ecx
mov dword [edx + 0x1a4], eax
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [ebx*4 + 0x690834]
mov eax, dword [eax + 0x34]
push edx
call eax
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [ebx*4 + 0x6908b4]
mov edx, dword [edx + 0x38]
push eax
call edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
inc ebx
add edi, 8
cmp ebx, dword [0x68afbc]
jl 0x4cd9c0
mov ecx, esi
call fcn.004cd3f0
mov eax, dword [esi + 0x268]
xor ebx, ebx
cmp eax, ebx
je 0x4cda89
cmp dword [eax + 0x18], ebx
je 0x4cda49
mov eax, dword [eax + 0x18]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test byte [ebp - 0x10], 5
jne 0x4cda89
mov dword [esi + 0x268], ebx
mov edi, dword [esi + 0x26c]
mov dword [esi + 0x26c], ebx
cmp edi, ebx
je 0x4cda89
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4cda89
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4cda89
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov eax, dword [esi + 0x1a0]
cmp eax, ebx
je 0x4cda97
mov ecx, esi
call eax
mov edx, dword [esi + 0x468]
mov ecx, dword [esi + 0x464]
cmp edx, ecx
jge 0x4cdabc
mov eax, dword [esi + 0x46c]
add edx, eax
dec eax
mov dword [esi + 0x468], edx
mov dword [esi + 0x46c], eax
mov eax, dword [esi + 0x474]
mov edi, dword [esi + 0x470]
sub eax, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x468]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
fimul dword [ebp - 0x14]
fidiv dword [ebp - 0x18]
call fcn.0052e550
mov edx, dword [esi + 0x30]
add eax, edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x11c], eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x14c], eax
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret