Function at 0x5203d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5db1bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 0x30]
mov ebp, ecx
push 0x5e91a0
push ebx
mov dword [esp + 0x18], ebp
call fcn.0051f180
add esp, 8
test eax, eax
je 0x52041f
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.0051f3f0
add esp, 8
test eax, eax
jne 0x520434
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov eax, dword [ebx]
push esi
push edi
push eax
call fcn.0057a0fd
mov ecx, dword [ebx]
lea edx, [ecx + eax*2]
push 0x5e919c
push ebx
mov dword [esp + 0x28], edx
call fcn.0051f180
add esp, 0xc
test eax, eax
jne 0x52059f
lea ecx, [ecx]
push 0x5e8074
push ebx
call fcn.0051f180
add esp, 8
test eax, eax
jne 0x52067d
mov eax, dword [ebx]
cmp word [eax], 0
je 0x520821
cmp eax, dword [esp + 0x1c]
jae 0x520821
push 0x14
call fcn.005abebb
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 0
test eax, eax
je 0x5204b4
push 0
push ebp
mov ecx, eax
call fcn.00520060
mov ebp, eax
jmp 0x5204b6
xor ebp, ebp
mov dword [esp + 0x30], 0xffffffff
push ebx
mov ecx, ebp
call fcn.0051fdc0
test eax, eax
je 0x5206a0
mov eax, dword [ebp + 0xc]
sub eax, 0x10
push eax
call fcn.004026e0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], 2
mov eax, dword [esi - 4]
mov edi, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, ecx
jge 0x520510
push edi
lea ecx, [esp + 0x3c]
call fcn.00402690
mov esi, dword [esp + 0x38]
push esi
call fcn.0057b8a3
add esp, 4
test edi, edi
jl 0x5207cf
cmp edi, dword [esi - 8]
jg 0x5207cf
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
add edi, 0x30
push esi
mov ecx, edi
call fcn.005aaf79
test eax, eax
je 0x520559
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x520559
mov edx, dword [ecx]
push 1
call dword [edx]
push esi
mov ecx, edi
call fcn.005ab14a
mov dword [eax], ebp
mov dword [esp + 0x30], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x520585
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
push 0x5e919c
push ebx
call fcn.0051f180
mov ebp, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x520460
push 0x604ffc
lea ecx, [esp + 0x14]
call fcn.00406630
mov dword [esp + 0x30], 4
push 0x3e
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00442bb0
add esp, 0xc
mov byte [esp + 0x30], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403130
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x38]
call fcn.00401b70
mov edx, dword [ebx]
cmp word [edx], 0
je 0x520810
jmp 0x520600
mov eax, dword [ebx]
cmp eax, dword [esp + 0x1c]
jae 0x520810
push 0x3c
push eax
call fcn.0057a3c2
mov edi, eax
add esp, 8
test edi, edi
je 0x520810
cmp word [edi], 0x3c
jne 0x520810
cmp edi, dword [ebx]
jbe 0x52072f
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
lea esi, [ebp + 0x10]
je 0x5206b6
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00431ff0
mov byte [esp + 0x30], 6
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
or ecx, 1
mov dword [esp + 0x14], ecx
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x520676
test ecx, ecx
jl 0x5207cf
cmp word [eax], 0x20
je 0x5206b6
mov byte [esp + 0x38], 1
jmp 0x5206bb
push 0x5e919c
push ebx
call fcn.0051f180
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
test ebp, ebp
je 0x520821
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
jmp 0x520821
mov byte [esp + 0x38], 0
mov dword [esp + 0x30], 4
test byte [esp + 0x14], 1
je 0x5206de
mov eax, dword [esp + 0x14]
and eax, 0xfffffffe
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.00401b70
mov al, byte [esp + 0x38]
test al, al
je 0x5206ef
push 0x20
mov ecx, esi
call fcn.0040d6e0
mov ecx, dword [ebx]
mov edx, edi
sub edx, ecx
sar edx, 1
push edx
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0051f500
add esp, 0xc
mov byte [esp + 0x30], 7
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00403130
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call fcn.00401b70
cmp dword [ebx], edi
jne 0x520810
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call fcn.0051f180
add esp, 8
test eax, eax
jne 0x5207d9
push 0x605014
push ebx
call fcn.0051f180
add esp, 8
test eax, eax
je 0x520780
mov edx, dword [ebx]
push 0x60500c
push edx
call fcn.0057aad0
add esp, 8
test eax, eax
je 0x520810
cmp word [eax], 0x2d
jne 0x520810
add eax, 6
mov dword [ebx], eax
jmp 0x5207c1
push 0x4c
call fcn.005abebb
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x30], 8
test eax, eax
je 0x5207a5
push 0
push ebp
mov ecx, eax
call fcn.0051ffe0
mov esi, eax
jmp 0x5207a7
xor esi, esi
mov byte [esp + 0x30], 4
push ebx
mov ecx, esi
call fcn.005203d0
test eax, eax
je 0x520804
push esi
lea ecx, [ebp + 0x14]
call fcn.005aa075
mov eax, dword [ebx]
cmp word [eax], 0
jne 0x520600
jmp 0x520810
push 0x80070057
call fcn.00401180
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
test esi, esi
je 0x520810
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401b70
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4