Function at 0x4cfd30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x55bd30
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5b2ae0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
call fcn.00401bb0
add eax, 0x10
add esp, 4
mov dword [esp + 0x2c], eax
push 0x20
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
mov dword [esp + 0x88], ebx
call fcn.004016d0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x84], 1
mov ecx, dword [esp + 0x30]
push 1
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push edi
call fcn.004cfa40
add esp, 0x14
test eax, eax
jne 0x4cfe30
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4cfdf0
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004cdb70
push edx
push 0x10
push eax
call fcn.00517315
push esi
call fcn.004efc12
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfe1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x30]
cmp word [ecx], 0x3d
je 0x4cfea6
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4cfe66
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004cdb70
push edx
push 0x10
push eax
call fcn.00517315
push esi
call fcn.004efc12
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfe1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add dword [esp + 0x30], 2
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x38]
push edx
push eax
push edi
call fcn.004cfa40
add esp, 0x14
test eax, eax
jne 0x4cff18
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4cfef4
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004cdb70
push ecx
push 0x10
push eax
call fcn.00517315
push esi
call fcn.004efc12
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4cfe0f
fld qword [edi + 0x38]
add edi, 0x38
mov dword [esp + 0x34], edi
call fcn.0051d390
push eax
lea edi, [esp + 0x3c]
call fcn.004cfce0
mov ecx, dword [ebp + 0xc]
add esp, 4
cmp ecx, ebx
je 0x4cff3d
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
fld qword [ecx]
sub esp, 8
lea ebx, [esp + 0x40]
fstp qword [esp]
mov eax, esi
call fcn.004ce5a0
mov eax, dword [esi + 8]
xor ebx, ebx
add esp, 8
cmp eax, ebx
ja 0x4cff8e
lea eax, [esp + 0x38]
mov byte [esp + 0x80], bl
call fcn.004d60f0
lea ecx, [esp + 0x2c]
call fcn.00401ce0
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov ecx, eax
mov edi, eax
shl edi, 4
mov edi, dword [edi + edx - 8]
cmp ecx, 1
jbe 0x4cffc5
cmp edi, ebx
jge 0x4cffd4
xor ecx, ecx
cmp eax, ebx
jbe 0x4cffd4
xor edx, edx
lea esp, [esp]
mov eax, dword [esi]
sub dword [edx + eax + 8], edi
lea eax, [edx + eax + 8]
inc ecx
add edx, 0x10
cmp ecx, dword [esi + 8]
jb 0x4cffb0
jmp 0x4cffd4
cmp edi, ebx
jge 0x4cffd4
shl eax, 4
sub dword [eax + edx - 8], edi
lea eax, [eax + edx - 8]
fldz
mov ecx, dword [esi]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x4d0006
xor ecx, ecx
cmp dword [esi + 8], ebx
jbe 0x4d0006
fld qword [0x58df50]
xor edx, edx
mov eax, dword [esi]
fld qword [eax + edx]
add eax, edx
fmul st(1)
inc ecx
add edx, 0x10
fstp qword [eax]
cmp ecx, dword [esi + 8]
jb 0x4cfff0
fstp st(0)
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4d0032
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004cdb70
push ecx
push 0x10
push eax
call fcn.00517315
push esi
call fcn.004efc12
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d005d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret