Function at 0x51f360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6fc1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.006d0ac1
lea edx, [ebx + 0xac]
lea ecx, [esp + 0x18]
lea ebp, [ebx + 0x9c]
call fcn.005fa650
mov edx, dword [ebp + 4]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov dword [ebp + 4], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [ebp + 0xc], ecx
cmp eax, esi
mov dword [esp + 0x30], 0xffffffff
je 0x51f3eb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x51f3e2
cmp al, 0xff
je 0x51f3e2
dec al
mov byte [ecx], al
jmp 0x51f3eb
push ecx
call fcn.00652870
add esp, 4
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
cmp ecx, esi
mov dword [esp + 0x10], eax
mov edi, 0x71eb04
je 0x51f412
mov edi, ecx
mov ecx, dword [ebp + 8]
cmp ecx, ecx
mov dword [esp + 0x14], ecx
jae 0x51f421
mov dword [esp + 0x14], ecx
cmp ecx, edx
jb 0x51f427
mov ecx, edx
mov esi, dword [ebp + 4]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x51f435
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x51f451
mov esi, dword [eax + 8]
mov edi, dword [esp + 0x14]
cmp edi, esi
jb 0x51f451
cmp edi, esi
setne dl
test edx, edx
je 0x51f555
mov byte [ebx + 0x98], 1
mov edx, dword [ebp + 8]
mov ecx, dword [0x71eb00]
mov ebx, edx
cmp ecx, ebx
jae 0x51f469
mov ebx, ecx
cmp eax, ebp
jne 0x51f496
push ecx
push ebx
mov ecx, eax
call fcn.00438190
mov ecx, dword [esp + 0x10]
push 0
push 0
call fcn.00438190
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
xor esi, esi
cmp ebx, esi
jbe 0x51f51a
cmp ebx, edx
jne 0x51f51a
mov ecx, dword [ebp + 4]
cmp ecx, esi
jne 0x51f4ac
mov ecx, 0x71eb04
cmp byte [ecx - 1], 0xfe
jae 0x51f51a
mov ecx, dword [eax + 4]
cmp ecx, esi
je 0x51f4db
lea edx, [ecx - 1]
mov cl, byte [ecx - 1]
test cl, cl
je 0x51f4ce
cmp cl, 0xff
je 0x51f4ce
dec cl
mov byte [edx], cl
jmp 0x51f4db
push edx
call fcn.00652870
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov ecx, dword [ebp + 4]
cmp ecx, esi
jne 0x51f4f0
mov ecx, 0x71eb04
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
mov al, byte [ecx - 1]
pop edi
inc al
pop esi
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push 1
push ebx
mov ecx, eax
call fcn.00402d20
test al, al
je 0x51f555
mov ebp, dword [ebp + 4]
cmp ebp, esi
mov esi, 0x71eb04
je 0x51f536
mov esi, ebp
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
push ebx
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
call fcn.00408980
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret