Function at 0x5be1f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404f9c
mov esi, dword [ebp + 8]
add esi, 0xffffffe8
xor eax, eax
push ebp
push 0x5be505
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, edi
call fcn.005bd900
pop ecx
mov dl, 1
mov eax, dword [0x42ae94]
call fcn.00431c44
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov edx, dword [eax + 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov edx, dword [eax + 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov ecx, dword [eax + 0x34]
xor edx, edx
xor eax, eax
call fcn.0041e218
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005b87dc
mov eax, dword [eax + 0x14]
call fcn.0042c624
push eax
mov eax, ebx
call fcn.0043220c
mov eax, dword [eax + 0x14]
pop edx
call fcn.0042c62c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
sub eax, 2
call fcn.005b8be4
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub eax, 2
call fcn.005b8be4
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041e218
mov edx, dword [esi]
add edx, dword [esi + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
sub edx, dword [eax + 0x34]
sar edx, 1
jns 0x5be313
adc edx, 0
mov eax, dword [esi]
call fcn.005b901c
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 4]
add edx, dword [esi + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
sub edx, dword [eax + 0x30]
sar edx, 1
jns 0x5be339
adc edx, 0
mov eax, dword [esi + 4]
call fcn.005b901c
mov dword [ebp - 0x28], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [esi + 8]
sub edx, dword [esi]
call fcn.005b8be4
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
call fcn.005b8be4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
cmp byte [eax + 0x40], 3
jne 0x5be3a7
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005b87dc
push eax
mov eax, ebx
call fcn.0043220c
lea edx, [ebp - 0x1c]
pop ecx
call fcn.0042cb7c
jmp 0x5be3b6
mov eax, ebx
call fcn.0043220c
lea edx, [ebp - 0x3c]
call fcn.0042cd2c
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x5be45e
mov eax, edi
mov edx, dword [0x4b2cb8]
call fcn.00403d84
test al, al
je 0x5be40e
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jl 0x5be40e
push 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
push 1
mov eax, ebx
call fcn.0043220c
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
xor ecx, ecx
call fcn.00494114
jmp 0x5be45e
mov eax, edi
mov edx, dword [0x4b341c]
call fcn.00403d84
test al, al
je 0x5be45e
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0x5be514]
fnstsw ax
sahf
jb 0x5be45e
push 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
call fcn.00402d40
push eax
push 1
mov eax, ebx
call fcn.0043220c
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
xor ecx, ecx
call fcn.00494114
mov dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
mov edx, 0x5be520
mov eax, dword [ebp - 4]
call fcn.0057cd8c
mov eax, dword [ebp - 0xc]
mov edx, 0x5be52c
call fcn.00404ef8
jne 0x5be49f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005b87dc
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.0042cfac
jmp 0x5be4bf
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.0043220c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005b87dc
lea edx, [ebp - 0x2c]
pop ecx
call fcn.0042cb7c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x3e5], 0
je 0x5be4e0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005b87dc
mov edx, esi
call fcn.005d6d68
mov eax, ebx
call fcn.00403bf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be50c
lea eax, [ebp - 0xc]
call fcn.00404aec
lea eax, [ebp - 4]
call fcn.00404aec
ret