Function at 0x51cad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5577db
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ba870]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5c5094]
mov ecx, dword [esi + 0x18]
push eax
call fcn.004a90a0
mov edi, eax
push esi
mov ecx, edi
call fcn.004aaab0
push 0x56d644
mov ecx, edi
call fcn.004b6d30
push 0x34
call fcn.0041f52e
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor ebp, ebp
mov dword [esp + 0x28], ebp
cmp esi, ebp
je 0x51cb68
mov edx, dword [edi]
mov eax, dword [edx + 0x6c]
mov ecx, edi
call eax
push 0x34
push ebp
push esi
mov ebx, eax
call fcn.0044b050
add esp, 0xc
mov ecx, edi
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.004aa9f0
mov ebx, esi
mov dword [esi + 0x30], ebp
mov dword [esp + 0x14], ebx
jmp 0x51cb6e
mov dword [esp + 0x14], ebp
mov ebx, ebp
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
lea esi, [ebx + 8]
push esi
mov ecx, edi
mov dword [esp + 0x2c], 0xffffffff
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
push esi
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
push esi
mov ecx, edi
call eax
mov ecx, dword [ebx]
mov ebp, dword [esp + 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x1c]
mov edx, dword [edx + 0x8c]
push eax
call edx
push ebp
mov ecx, ebx
call fcn.0051c990
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x20]
mov esi, dword [eax]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 0
test esi, esi
je 0x51ccab
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x30]
add eax, edx
cmp eax, ecx
jg 0x51cbf0
mov esi, dword [esi + 0x2c]
mov dword [esp + 0x30], eax
test esi, esi
jne 0x51cbd3
jmp 0x51ccab
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, edx
neg ebx
sbb ebx, ebx
and ebx, eax
mov dword [esp + 0x1c], ecx
mov dword [esi + 8], eax
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x51cc5b
lea ecx, [ecx]
push ebp
mov ecx, esi
call fcn.0051c990
mov edx, dword [esi + 0x20]
add edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x34]
jg 0x51cc5b
cmp dword [ebp + 0x24], 2
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
jne 0x51cc46
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
je 0x51cc46
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
lea eax, [esi + 8]
push eax
mov eax, dword [edx + 0x70]
call eax
cmp dword [esi + 8], 0xffffffff
jne 0x51cc10
test ebx, ebx
je 0x51cc65
cmp dword [ebp + 0x24], 2
je 0x51cc69
mov ebx, dword [esp + 0x18]
push ebp
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.0051c990
mov ecx, dword [esi + 0x20]
add dword [esp + 0x30], ecx
cmp dword [esi + 0x2c], 0
je 0x51cca7
mov ebx, dword [esi + 0x2c]
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.0051ca00
test ebx, ebx
je 0x51cca1
mov ecx, dword [ebx]
call fcn.004aaa10
push ebx
call fcn.0041f568
add esp, 4
cmp dword [esi + 0x2c], 0
jne 0x51cc81
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x51ccba
mov dword [ecx + 0x2c], ebx
jmp 0x51ccbf
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ebx
mov ebp, dword [ebp + 4]
mov ecx, edi
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], ebp
call fcn.004aaa10
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8