Function at 0x506ab0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a4e10
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
xor esi, esi
push edi
cmp ebp, esi
jne 0x506aec
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov ecx, dword [0x66733c]
mov edi, dword [0x667338]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x64], edx
je 0x506b4b
mov edx, edi
cmp dword [edx + 0xc], esi
jbe 0x506b3f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
repne scasb al, byte es:[edi]
mov eax, dword [edx + 4]
not ecx
dec ecx
sub eax, esi
cmp eax, ecx
jne 0x506b3d
mov edi, ebp
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x506c5a
xor esi, esi
mov eax, dword [esp + 0x64]
inc ebx
add edx, 0x14
cmp ebx, eax
jb 0x506b15
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
or ebx, 0xffffffff
mov edi, str.Patch_
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x5c], esi
add ecx, str.Patch_
push ecx
push str.Patch_
lea ecx, [esp + 0x2c]
call fcn.004029c0
lea eax, [esp + 0x24]
push ebp
lea ecx, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x68], 1
call fcn.0049e280
mov eax, dword [eax]
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
call fcn.00529330
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
add esp, 0x24
sub eax, ecx
cmp ecx, esi
je 0x506bdd
cmp eax, esi
je 0x506bdd
push eax
push ecx
call fcn.00402dc0
add esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
cmp ecx, esi
mov dword [esp + 0x5c], ebx
je 0x506bfd
cmp eax, esi
je 0x506bfd
push eax
push ecx
call fcn.00402dc0
add esp, 8
cmp dword [esp + 0x14], esi
jne 0x506d91
mov al, byte [0x667398]
test al, al
je 0x506d39
lea eax, [esp + 0x13]
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.00402290
mov edi, 0x5a8fd0
mov dword [esp + 0x30], edi
push ebp
mov ecx, 0x66736c
mov dword [esp + 0x60], 2
call fcn.004812e0
mov ecx, eax
cmp ecx, esi
jge 0x506c81
mov dword [esp + 0x30], edi
mov dword [esp + 0x5c], 3
jmp 0x506cc6
mov edx, dword [0x667338]
lea ecx, [ebx + ebx*4]
pop edi
pop esi
lea eax, [edx + ecx*4 + 0x10]
pop ebp
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov edx, dword [0x667370]
mov eax, dword [0x66736c]
sub edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jae 0x506cba
lea edx, [esp + 0x30]
push edx
push ecx
mov ecx, 0x66736c
call fcn.004811d0
test al, al
jne 0x506cf1
or ebx, 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x5c], 4
lea ecx, [esp + 0x30]
call fcn.00481f20
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ebx
call fcn.004025c0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
lea eax, [esp + 0x64]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
call fcn.00529580
add esp, 0x18
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 5
call fcn.00481f20
or ebx, 0xffffffff
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ebx
jmp 0x506d71
push ebp
lea eax, [esp + 0x4c]
push 0x667360
push eax
call fcn.0049e280
lea ecx, [esp + 0x70]
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
push ecx
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.00529330
add esp, 0x24
lea ecx, [esp + 0x48]
call fcn.004025c0
cmp dword [esp + 0x14], esi
jne 0x506d91
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
call fcn.00506e30
mov ecx, dword [0x667338]
mov esi, eax
mov edi, ebp
lea eax, [esi + esi*4]
lea ebx, [ecx + eax*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
push ecx
push ebp
mov ecx, ebx
call fcn.00403150
mov dword [ebx + 0x10], 1
add ebx, 0xc
push ebx
push 1
mov dword [ebx], 0
call fcn.00528eb0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call fcn.00529150
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call fcn.00529740
mov ecx, dword [esp + 0x80]
add esp, 0x2c
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret