Function at 0x4c92c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407970
mov eax, dword [ebp - 8]
call fcn.00407970
mov eax, dword [ebp + 8]
call fcn.0040727c
xor eax, eax
push ebp
push 0x4c95d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov ecx, 0x4c95e0
call fcn.00407940
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
dec eax
test eax, eax
jl 0x4c957c
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [ebp + 0xc]
lea ebx, [edx + eax + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
imul esi, dword [ebp - 0x1c], 0xb
mov eax, dword [ebp + 8]
lea edx, [eax + esi*4]
mov eax, dword [0x56f458]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0xc]
test al, al
je 0x4c9376
mov word [ebx + 0x27], 0xffff
xor eax, eax
mov dword [ebx + 0xc], eax
jmp 0x4c9570
mov word [ebx + 0x27], 0
movzx eax, word [ebx + 0x25]
cmp eax, 5
jg 0x4c9394
je 0x4c93e3
sub eax, 3
je 0x4c93aa
dec eax
je 0x4c93c6
jmp 0x4c9570
add eax, 0xffffff90
sub eax, 2
jb 0x4c94b4
sub eax, 0x49
je 0x4c9414
jmp 0x4c9570
mov eax, dword [ebp + 8]
lea edx, [eax + esi*4]
mov eax, dword [0x56f458]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov edx, dword [ebx + 0xc]
mov dword [edx], eax
jmp 0x4c9570
mov eax, dword [ebp + 8]
lea edx, [eax + esi*4]
mov eax, dword [0x56f458]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0xc]
fstp qword [eax]
wait
jmp 0x4c9570
mov eax, dword [ebp + 8]
lea edx, [eax + esi*4]
lea ecx, [ebp - 0x44]
mov eax, dword [0x56f458]
mov eax, dword [eax]
mov esi, dword [eax]
call dword [esi + 0x30]
mov eax, dword [ebp - 0x44]
call fcn.00405c78
mov edx, eax
mov eax, dword [ebx + 0xc]
mov ecx, 0x400
call fcn.0040b3e4
jmp 0x4c9570
mov eax, dword [ebp + 8]
lea edx, [eax + esi*4]
mov eax, dword [0x56f458]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x32]
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x2e]
call fcn.0040d1c0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x3a]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x36]
lea eax, [ebp - 0x34]
call fcn.0040cee0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, byte [ebp - 0x30]
push eax
movzx eax, byte [ebp - 0x32]
push eax
movzx eax, byte [ebp - 0x34]
push eax
movzx eax, byte [ebp - 0x36]
push eax
movzx eax, byte [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3a]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x98]
mov edx, eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xbc]
push 4
push 0
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004c9920
jmp 0x4c9570
mov eax, dword [ebp + 8]
lea edx, [eax + esi*4]
lea ecx, [ebp - 0x48]
mov eax, dword [0x56f458]
mov eax, dword [eax]
mov esi, dword [eax]
call dword [esi + 0x40]
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0xc]
mov ecx, 0x4c95f0
call fcn.00407940
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4c9569
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push eax
movzx eax, byte [ebx + 0x24]
push eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4c7784]
call fcn.004c88d8
mov edx, eax
test edx, edx
je 0x4c951d
sub edx, 0xffffffd4
lea eax, [ebp - 0x10]
call fcn.00407914
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x4c]
lea eax, [ebx + 0x29]
mov edx, dword [ebp - 0x10]
call fcn.00407914
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9570
lea eax, [ebp - 0x10]
call fcn.004078fc
mov eax, dword [ebp - 0x2c]
call fcn.004048a8
ret
inc dword [ebp - 0x1c]
dec dword [ebp - 0x40]
jne 0x4c9336
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c95d7
lea eax, [ebp - 0x48]
call fcn.004078fc
lea eax, [ebp - 0x44]
call fcn.004057e8
lea eax, [ebp - 0x14]
call fcn.004078fc
lea eax, [ebp - 0x10]
call fcn.004078fc
lea eax, [ebp - 0xc]
call fcn.004078fc
lea eax, [ebp - 8]
call fcn.004078fc
lea eax, [ebp - 4]
call fcn.004078fc
lea eax, [ebp + 8]
mov edx, dword [0x490eec]
call fcn.00407218
ret