Function at 0x500ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0x44]
mov edx, dword [0x53da18]
call fcn.00403e48
xor eax, eax
push ebp
push 0x501235
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0047a1bc
mov esi, eax
mov eax, dword [0x669810]
cmp dword [eax + 4], 0
jne 0x5011f4
call fcn.00541d5c
mov edx, dword [0x669810]
mov dword [edx + 4], eax
test bl, bl
jne 0x500d67
mov eax, esi
call fcn.0047b394
mov ebx, eax
mov edx, 0x50124c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x50125c
mov eax, ebx
call fcn.006175c0
mov eax, dword [ebp - 0xc]
call fcn.0040351c
push eax
mov eax, dword [ebp - 0xc]
call fcn.004036e0
mov edx, eax
lea eax, [ebp - 0x44]
pop ecx
call fcn.005458dc
mov eax, dword [0x6690d8]
or dword [eax + 4], 0x200
cmp dword [ebp - 0xc], 0
je 0x500dad
lea edx, [ebp - 0x44]
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
call fcn.00592888
test al, al
jne 0x5010d1
lea ecx, [ebp - 0x24]
mov edx, 0x501268
mov eax, 0x501268
call fcn.00656658
lea eax, [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edx, dword [ebp - 0x24]
call fcn.00403358
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
lea edx, [ebp - 0x44]
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
call fcn.00592888
mov eax, dword [0x6692cc]
cmp dword [eax], 0
je 0x500e08
mov eax, dword [0x6698c8]
cmp byte [eax + 0x1a], 0
je 0x500e08
mov al, 0xa
call fcn.0047a524
test al, al
jne 0x500e44
mov eax, dword [0x6692cc]
cmp dword [eax], 0
jne 0x500e26
mov dl, 1
mov eax, dword [0x5089b8]
call fcn.00402898
mov edx, dword [0x6692cc]
mov dword [edx], eax
mov eax, dword [0x6692cc]
mov eax, dword [eax]
call fcn.0050948c
mov eax, dword [0x669510]
mov byte [eax + 0x11], 1
mov eax, dword [0x669510]
mov byte [eax + 0x13], 1
mov dword [ebp - 0x18], 1
mov eax, dword [0x669704]
mov dword [ebp - 0x2c], eax
push 0x501278
mov eax, dword [ebp - 0x2c]
push dword [eax]
push 0x50128c
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004035dc
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0065432c
mov ecx, dword [ebp - 0x4c]
mov edx, dword [0x669700]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x48]
call fcn.00403b24
mov edx, dword [ebp - 0x48]
mov eax, dword [0x6692cc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
call fcn.005092d4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5010b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x24], 0
jle 0x5010b8
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jle 0x500f11
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
call fcn.0055c2d0
test al, al
jne 0x500f09
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x500ee2
mov dl, 1
mov eax, dword [0x647140]
call fcn.00402898
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x24]
dec eax
test eax, eax
jl 0x5010b0
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
push ebp
push 0x50109a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x48]
call fcn.00403b24
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.00649320
mov ecx, dword [0x669810]
mov ecx, dword [ecx + 4]
mov dl, 1
mov eax, dword [0x53cb54]
call fcn.0055a348
mov esi, eax
call fcn.0041e8b0
mov ebx, dword [esi + 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x38]
call fcn.0061d6c0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0061c8e8
mov eax, dword [ebx + 0x38]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.005584e0
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x2c], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x30], eax
mov byte [ebx + 0x49], 0
mov byte [ebx + 0x4a], 1
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.005f40f4
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
call fcn.00541d30
mov edi, eax
lea ebx, [edi + 0x14]
mov dword [ebx + 8], esi
mov ax, word [ebx + 0x68]
mov edx, dword [0x669a18]
cmp ax, word [edx]
je 0x501075
mov ax, word [ebx + 0x6a]
mov edx, dword [0x669a18]
cmp ax, word [edx]
je 0x501075
jmp 0x50105b
sub word [ebx + 0x68], 0x5a
add word [ebx + 0x6a], 0x5a
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x2c]
mov edx, 0x69
call fcn.0061ec08
movsx edx, word [ebx + 0x68]
neg edx
cmp eax, edx
jg 0x501051
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov ecx, edi
mov edx, dword [ebp - 0x14]
call fcn.0064e25c
inc dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5010a4
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x500f3d
mov eax, dword [ebp - 8]
call fcn.004028c0
add dword [ebp - 0x2c], 4
dec dword [ebp - 0x18]
jne 0x500e53
mov eax, dword [0x6690d8]
and dword [eax + 4], 0xfffffdff
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb0]
call fcn.0064e250
cmp dword [eax + 8], 0
jne 0x5010f6
mov ecx, 2
mov dl, 0x17
call fcn.0054bb80
mov bl, 3
mov esi, dword [0x669810]
add esi, 8
mov eax, dword [esi]
call fcn.0064e144
add esi, 4
dec bl
jne 0x501101
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x50117e
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x669810]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
call fcn.0055c2d0
and eax, 0x7f
mov edx, dword [0x669810]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [0x669810]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x604]
mov edx, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + ecx*4]
call fcn.0064e1f0
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x501130
mov bl, 3
mov eax, dword [0x6690d8]
add eax, 0x50
mov esi, dword [0x669810]
add esi, 8
mov edx, dword [eax]
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x18]
jl 0x50119e
xor edx, edx
mov dword [eax], edx
add esi, 4
add eax, 4
dec bl
jne 0x501191
mov bl, 3
mov esi, dword [0x669810]
add esi, 8
mov eax, dword [esi]
cmp dword [eax + 0x18], 0
jne 0x5011ed
mov eax, dword [0x669810]
add eax, 4
call fcn.006526a0
mov eax, dword [0x6690d8]
xor edx, edx
mov dword [eax + 0x50], edx
mov eax, dword [0x6690d8]
xor edx, edx
mov dword [eax + 0x54], edx
mov eax, dword [0x6690d8]
xor edx, edx
mov dword [eax + 0x58], edx
mov al, 1
call fcn.00500ce0
add esi, 4
dec bl
jne 0x5011b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50123c
lea eax, [ebp - 0x50]
call fcn.00403274
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x44]
mov edx, dword [0x53da18]
call fcn.00403f10
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
ret