Function at 0x51ba38
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
call fcn.004c8c48
mov eax, ebx
call fcn.0051b9ec
test al, al
jne 0x51ba5b
mov byte [ebp - 1], 0
jmp 0x51bc9a
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x28]
cmp dword [ecx + 8], 0
jne 0x51ba70
mov eax, dword [eax + 0xc]
cmp dword [eax + 4], 0xb
je 0x51ba8d
mov edx, dword [ebx + 0x30]
mov eax, dword [edx + 0x28]
cmp dword [eax + 8], 0xb
jne 0x51bb4c
mov eax, dword [edx + 0xc]
cmp dword [eax + 4], 0xb
jne 0x51bb4c
mov ecx, dword [ebx + 0x48]
mov dl, 1
mov eax, dword [0x51f2d4]
call fcn.005239f0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51bb45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
mov eax, dword [ebx + 0x118]
call fcn.00522484
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov eax, dword [ebx + 0x118]
call fcn.005224e4
mov edx, dword [ebx + 0x118]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00521770
mov dl, 2
mov eax, dword [ebp - 8]
call fcn.00523ba8
mov esi, dword [ebx + 0x50]
test esi, esi
je 0x51bb03
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx + 0x50]
call fcn.004050e0
push eax
push esi
mov eax, dword [ebx + 0x9c]
mov edx, dword [ebx + 0x90]
add edx, eax
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebp - 8]
call fcn.005215a8
test al, al
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bc9a
lea eax, [ebp - 8]
call fcn.004c8868
ret
mov edx, dword [ebx + 0x30]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x51bb65
cmp dword [eax + 4], 0xc
jne 0x51bb65
mov byte [ebp - 1], 0
jmp 0x51bc9a
mov eax, dword [edx + 0x28]
mov eax, dword [eax + 8]
test eax, eax
jne 0x51bc00
mov ecx, dword [ebx + 0x48]
mov dl, 1
mov eax, dword [0x51f2d4]
call fcn.005239f0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51bbf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0x118]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00521770
mov esi, dword [ebx + 0x50]
test esi, esi
je 0x51bbb7
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx + 0x50]
call fcn.004050e0
push eax
push esi
mov eax, dword [ebx + 0x9c]
mov edx, dword [ebx + 0x90]
add edx, eax
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebp - 8]
call fcn.005215a8
test al, al
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bc9a
lea eax, [ebp - 8]
call fcn.004c8868
ret
cmp eax, 4
jne 0x51bc96
mov ecx, dword [ebx + 0x48]
mov dl, 1
mov eax, dword [0x51f494]
call fcn.00526434
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x51bc8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0x118]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00521770
mov esi, dword [ebx + 0x50]
test esi, esi
je 0x51bc4d
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx + 0x50]
call fcn.004050e0
push eax
push esi
mov eax, dword [ebx + 0x9c]
mov edx, dword [ebx + 0x90]
add edx, eax
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebp - 0xc]
call fcn.005215a8
test al, al
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bc9a
lea eax, [ebp - 0xc]
call fcn.004c8868
ret
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret