Function at 0x520b84
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x520b8c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.004052cc
xor eax, eax
push ebp
push 0x520ed7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
call fcn.00406d18
mov byte [ebp - 0x11], 0
xor eax, eax
push ebp
push 0x520bfc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.004057c4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, 0x10
call fcn.004b42d8
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520c0b
cmp dword [ebp - 4], 0
je 0x520ea4
xor eax, eax
push ebp
push 0x520e9d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea edx, [ebp - 0x28]
mov eax, 0x520ef4
call fcn.004099c0
lea edx, [ebp - 0x28]
mov ecx, 0x10
mov eax, dword [ebp - 4]
call fcn.004b3e3c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x520e7e
xor eax, eax
push ebp
push 0x520e77
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.00406d30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xe8]
call fcn.0040646c
inc eax
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0xe8
mov ecx, 1
mov edx, dword [0x510810]
call fcn.00406628
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xe8]
call fcn.00406474
lea eax, [eax + eax*8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0xe8]
lea ebx, [edx + eax*8]
lea ecx, [ebp - 0x2c]
mov edx, 0x520f24
mov eax, dword [ebp - 0x10]
call fcn.004b2d10
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00404e84
xor ecx, ecx
mov edx, 0x520f3c
mov eax, dword [ebp - 0x10]
call fcn.004b2fec
fstp qword [ebx + 0x18]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x520f50
mov eax, dword [ebp - 0x10]
call fcn.004b2d10
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 8]
call fcn.00404e84
mov edx, 0x520f60
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov byte [ebx + 0xc], al
lea ecx, [ebp - 0x34]
mov edx, 0x520f74
mov eax, dword [ebp - 0x10]
call fcn.004b2d10
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x40]
call fcn.00404e84
lea ecx, [ebp - 0x38]
mov edx, 0x520f8c
mov eax, dword [ebp - 0x10]
call fcn.004b2d10
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x28]
call fcn.00404e84
lea ecx, [ebp - 0x3c]
mov edx, 0x520fa4
mov eax, dword [ebp - 0x10]
call fcn.004b2d10
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x2c]
call fcn.00404e84
lea ecx, [ebp - 0x40]
mov edx, 0x520fb4
mov eax, dword [ebp - 0x10]
call fcn.004b2d10
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x30]
call fcn.00404e84
mov edx, 0x520fc4
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov dword [ebx + 0x10], eax
mov edx, 0x520fd8
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov dword [ebx + 0x14], eax
mov edx, 0x520fe8
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov dword [ebx + 0x20], eax
mov edx, 0x520ff8
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov dword [ebx + 0x24], eax
mov edx, 0x521010
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov byte [ebx + 0x34], al
mov edx, 0x52102c
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov word [ebx + 0x36], ax
mov edx, 0x521040
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov byte [ebx + 0x38], al
mov edx, 0x521058
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov byte [ebx + 0x39], al
mov edx, 0x521070
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov word [ebx + 0x3a], ax
mov edx, 0x521084
mov eax, dword [ebp - 0x10]
call fcn.004b2ef0
mov word [ebx + 0x3c], ax
cmp dword [ebp - 0x10], 0
setne dl
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004b7e58
xor ebx, ebx
jmp 0x520e3f
inc ebx
push ebp
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.0040a434
mov eax, dword [ebp - 0x44]
call fcn.00520868
pop ecx
test al, al
jne 0x520e3e
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520e7e
cmp dword [ebp - 8], 0
je 0x520e76
mov eax, dword [ebp - 8]
call fcn.00403ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520ea4
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x520e9c
mov eax, dword [ebp - 4]
call fcn.00403ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520ede
lea eax, [ebp - 0x44]
mov edx, 7
call fcn.00404e54
lea eax, [ebp - 0x18]
call fcn.0040562c
lea eax, [ebp - 0x10]
call fcn.00406d18
lea eax, [ebp - 0xc]
call fcn.00404e30
ret