Function at 0x54b230
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x74a860
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x20
mov byte [ecx + 0xd4], 0
mov ecx, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, dword [eax]
add esi, 2
push edi
mov dword [eax], esi
mov edx, dword [ecx + 4]
mov eax, esi
cmp eax, edx
jle 0x54b3cc
xor ebx, ebx
or ebp, 0xffffffff
mov ecx, dword [0x93fa62]
mov eax, dword [ecx + 0x1fc]
test eax, eax
je 0x54b691
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x54b691
mov dl, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.00404760
mov edi, 0x7a5864
mov ecx, ebp
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], 8
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00401450
test al, al
je 0x54b2f3
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
mov esi, 0x7a5864
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x54b300
mov eax, 0x765608
movsx edx, bx
push edx
push eax
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00728404
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00401450
test al, al
je 0x54b358
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov dl, byte [esp + 0x10]
sub esp, 0x10
mov ecx, esp
xor esi, esi
mov dword [esp + 0x54], esp
mov byte [ecx], dl
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], esi
mov eax, dword [0x76560c]
lea edx, [esp + 0x20]
push eax
push esi
push edx
call fcn.00404560
mov eax, dword [0x93fa62]
mov byte [esp + 0x48], 8
mov ecx, dword [eax + 0x1fc]
mov ecx, dword [ecx + 0x14]
call fcn.0054fa90
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
cmp ecx, esi
je 0x54b691
mov al, byte [ecx - 1]
test al, al
je 0x54b687
cmp al, 0xff
je 0x54b687
dec al
mov byte [ecx - 1], al
jmp 0x54b691
mov ecx, dword [ecx + 8]
mov bx, word [ecx + eax - 2]
cmp bx, 1
jne 0x54b484
mov edx, dword [0x93fa62]
mov eax, dword [edx + 0x1fc]
test eax, eax
je 0x54b691
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x54b691
mov al, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00404760
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
push ecx
push 0x2c68
call fcn.006a8c20
mov dl, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.00404760
mov eax, dword [0x76560c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00404560
mov edx, dword [0x93fa62]
mov byte [esp + 0x48], 0
mov eax, dword [edx + 0x1fc]
mov ecx, dword [eax + 0x14]
call fcn.0054fa90
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00404760
jmp 0x54b691
or ebp, 0xffffffff
cmp bx, bp
jne 0x54b533
mov ecx, dword [0x93fa62]
mov eax, dword [ecx + 0x1fc]
test eax, eax
je 0x54b691
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x54b691
mov dl, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.00404760
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 2
push eax
push 0x2c64
call fcn.006a8c20
mov cl, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00404760
mov edx, dword [0x76560c]
lea eax, [esp + 0x20]
push edx
push 0
push eax
mov ecx, esi
call fcn.00404560
mov ecx, dword [0x93fa62]
mov byte [esp + 0x48], 2
mov edx, dword [ecx + 0x1fc]
mov ecx, dword [edx + 0x14]
call fcn.0054fa90
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebp
call fcn.00404760
jmp 0x54b691
cmp bx, 0xfffe
jne 0x54b5de
mov eax, dword [0x93fa62]
mov eax, dword [eax + 0x1fc]
test eax, eax
je 0x54b691
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x54b691
mov cl, byte [esp + 0x44]
push 0
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
call fcn.00404760
lea edx, [esp + 0x10]
mov ebx, 4
push edx
push 0x2c78
mov dword [esp + 0x40], ebx
call fcn.006a8c20
mov al, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00404760
mov ecx, dword [0x76560c]
lea edx, [esp + 0x20]
push ecx
push 0
push edx
mov ecx, esi
call fcn.00404560
mov eax, dword [0x93fa62]
mov byte [esp + 0x48], bl
mov ecx, dword [eax + 0x1fc]
mov ecx, dword [ecx + 0x14]
call fcn.0054fa90
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebp
call fcn.00404760
jmp 0x54b691
cmp bx, 0xfffd
jne 0x54b274
mov edx, dword [0x93fa62]
mov eax, dword [edx + 0x1fc]
test eax, eax
je 0x54b691
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x54b691
mov al, byte [esp + 0x44]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00404760
lea ecx, [esp + 0x10]
mov ebx, 6
push ecx
push 0x2c69
mov dword [esp + 0x40], ebx
call fcn.006a8c20
mov dl, byte [esp + 0x18]
sub esp, 8
mov esi, esp
mov dword [esp + 0x54], esp
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.00404760
mov eax, dword [0x76560c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00404560
mov edx, dword [0x93fa62]
mov byte [esp + 0x48], bl
mov eax, dword [edx + 0x1fc]
mov ecx, dword [eax + 0x14]
call fcn.0054fa90
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebp
call fcn.00404760
jmp 0x54b691
dec ecx
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 8