Function at 0x502460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x502468
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50298e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.00405d0c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004a8504
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.0040751c
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x5029a4
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004a8504
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.0040751c
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x5029b8
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
call fcn.00405664
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x5029cc
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 8
call fcn.00405664
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x5029e0
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0xc
call fcn.00405664
lea ecx, [ebp - 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x5029f8
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x1c
call fcn.00405664
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x502a08
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x24
call fcn.00405664
xor eax, eax
call fcn.004a4fb8
mov edx, dword [eax]
call dword [edx]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x502a20
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.00405664
mov eax, dword [ebp - 0x40]
call fcn.0040ff70
mov eax, dword [ebp - 8]
mov eax, dword [eax]
fstp qword [eax + 0x28]
wait
lea ecx, [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x502a3c
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x30
call fcn.00405664
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x502a48
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x20
call fcn.00405664
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x34
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
mov eax, 0x502a5c
call fcn.004059e4
test eax, eax
jle 0x50272b
lea ecx, [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x502a68
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4a2aac]
call fcn.00406c98
add esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00406abc
dec eax
test eax, eax
jl 0x50272b
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004b0684
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
mov edx, 0x502a90
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx*8]
call fcn.00405664
lea ecx, [ebp - 0x68]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004b0684
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
mov edx, 0x502a9c
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx*8 + 4]
call fcn.00405664
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x50269a
mov edx, dword [ebp - 4]
mov eax, 0x502ab0
call fcn.004059e4
test eax, eax
jle 0x50289e
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x502abc
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov ecx, 1
mov edx, dword [0x4a3000]
call fcn.00406c98
add esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00406abc
dec eax
test eax, eax
jl 0x50289e
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x78]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004b0684
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, 0x502af0
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*4]
call fcn.00405664
lea ecx, [ebp - 0x84]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004b0684
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
mov edx, 0x502b08
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*4 + 4]
call fcn.00405664
lea ecx, [ebp - 0x90]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004b0684
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov edx, 0x502b20
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*4 + 8]
call fcn.00405664
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x5027a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502998
lea eax, [ebp - 0x90]
mov edx, dword [0x4a78b0]
mov ecx, 2
call fcn.004061e8
lea eax, [ebp - 0x88]
call fcn.00405b28
lea eax, [ebp - 0x84]
mov edx, dword [0x4a78b0]
mov ecx, 2
call fcn.004061e8
lea eax, [ebp - 0x7c]
call fcn.00405b28
lea eax, [ebp - 0x78]
mov edx, dword [0x4a78b0]
mov ecx, 2
call fcn.004061e8
lea eax, [ebp - 0x70]
call fcn.00405b28
lea eax, [ebp - 0x6c]
mov edx, dword [0x4a78b0]
mov ecx, 3
call fcn.004061e8
lea eax, [ebp - 0x60]
call fcn.00405b28
lea eax, [ebp - 0x5c]
mov edx, dword [0x4a78b0]
mov ecx, 2
call fcn.004061e8
lea eax, [ebp - 0x54]
call fcn.00405b28
lea eax, [ebp - 0x50]
call fcn.00407504
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00405b40
lea eax, [ebp - 0x40]
call fcn.004053cc
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00405b40
lea eax, [ebp - 0x28]
call fcn.00407504
lea eax, [ebp - 0x24]
call fcn.00405b28
lea eax, [ebp - 0x20]
call fcn.00407504
lea eax, [ebp - 0x1c]
call fcn.00405b28
lea eax, [ebp - 0x18]
call fcn.00407504
ret