Function at 0x477fe0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5d0ab0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov ebp, 0x2f
push edi
mov esi, ecx
lea edi, [ebp - 5]
mov eax, dword [esi + 0x50]
mov ebx, eax
mov dword [esi + 0x54], eax
mov dword [esp + 0x10], ebx
mov edx, dword [esi + 0x50]
movzx ecx, word [edx]
movzx eax, cx
cmp ax, 0x20
je 0x478033
cmp ax, 9
je 0x478033
cmp ax, 0xd
je 0x478033
cmp ax, 0xa
jne 0x478040
test cx, cx
je 0x478040
add edx, 2
mov dword [esi + 0x50], edx
jmp 0x478012
mov eax, edx
movzx ecx, word [eax]
test cx, cx
je 0x4785a1
cmp cx, bp
jne 0x478096
cmp word [eax + 2], di
jne 0x478096
add eax, 4
mov dword [esi + 0x50], eax
cmp word [eax], 0
je 0x47807f
mov eax, dword [esi + 0x50]
cmp word [eax], di
jne 0x478073
cmp word [eax + 2], bp
je 0x47807f
add eax, 2
mov dword [esi + 0x50], eax
cmp word [eax], 0
jne 0x478065
mov eax, dword [esi + 0x50]
cmp word [eax], di
jne 0x478006
add eax, 4
mov dword [esi + 0x50], eax
jmp 0x478006
movzx ecx, word [eax]
cmp cx, 0x3c
jne 0x47819c
lea ecx, [esp + 0x10]
add eax, 2
push ecx
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00477a20
mov dword [esp + 0x28], 0
lea edi, [esi + 0x47]
push eax
mov ecx, edi
call fcn.00439f20
or ebp, 0xffffffff
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x10]
call fcn.004381e0
mov ecx, edi
call fcn.00437d00
test eax, eax
jle 0x4780f9
lea eax, [ebp + 6]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, esi
call fcn.00477fe0
cmp eax, 0xb
jne 0x478192
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00477a20
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x10]
call fcn.00437d00
test eax, eax
jle 0x47816a
mov ecx, esi
call fcn.00477fe0
cmp eax, 3
jne 0x47816a
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esi + 0x54], ebx
call fcn.00439f20
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x10]
call fcn.004381e0
mov eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [esi + 0x50], ebx
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x10]
call fcn.004381e0
mov eax, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, 8
jmp 0x4785a3
cmp cx, 0x3e
jne 0x4781cd
add eax, 2
push 0x5e5514
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.0043a980
mov eax, 3
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ecx
call fcn.0051e60b
add esp, 4
test eax, eax
jne 0x47854a
mov eax, dword [esi + 0x50]
movzx ecx, word [eax]
cmp cx, 0x5f
je 0x47854a
cmp cx, 0x3d
jne 0x47821f
add eax, 2
push 0x5e0358
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.0043a980
mov eax, 9
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp cx, 0x2c
jne 0x478250
add eax, 2
push 0x5e0258
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.0043a980
mov eax, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp cx, bp
jne 0x478280
add eax, 2
push 0x5e31c4
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.0043a980
mov eax, 0xb
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ecx
call fcn.0051e68c
add esp, 4
test eax, eax
jne 0x4784f3
mov eax, dword [esi + 0x50]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x4784f3
cmp cx, 0x22
jne 0x4783d7
add eax, 2
lea ebx, [esi + 0x47]
push 0x5dbe20
mov ecx, ebx
mov dword [esi + 0x50], eax
call fcn.0043a980
mov eax, dword [esi + 0x50]
push 0x22
push eax
call fcn.0051f40b
mov edi, eax
add esp, 8
test edi, edi
je 0x478313
mov ebp, 0x5c
lea esp, [esp]
mov eax, dword [esi + 0x50]
cmp edi, eax
jbe 0x478313
cmp word [edi - 2], bp
jne 0x478313
mov ecx, edi
sub ecx, eax
and ecx, 0xfffffffe
cmp ecx, 4
jl 0x4782ff
cmp word [edi - 4], bp
je 0x478313
push 0x22
add edi, 2
push edi
call fcn.0051f40b
mov edi, eax
add esp, 8
test edi, edi
jne 0x4782e0
mov ecx, dword [esi + 0x50]
cmp edi, ecx
jb 0x4783b8
mov eax, edi
sub eax, ecx
sar eax, 1
push eax
push ecx
inc eax
push eax
mov ecx, ebx
call fcn.004030d0
push eax
call fcn.00522cca
add esp, 0xc
mov ecx, ebx
call fcn.00425b80
mov edx, edi
sub edx, dword [esi + 0x50]
xor ecx, ecx
sar edx, 1
mov word [eax + edx*2], cx
or ebp, 0xffffffff
push ebp
mov ecx, ebx
call fcn.0040c2f0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push ebx
call fcn.00438190
mov dword [esp + 0x30], 4
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], ebp
call fcn.00477db0
add esp, 0xc
mov dword [esp + 0x28], 5
push eax
mov ecx, ebx
call fcn.00439f20
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x18]
call fcn.004381e0
add edi, 2
mov dword [esi + 0x50], edi
lea eax, [ebp + 8]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov dword [esi + 0x50], eax
mov eax, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp cx, 0x27
jne 0x478192
add eax, 2
lea ebx, [esi + 0x47]
push 0x5dbe20
mov ecx, ebx
mov dword [esi + 0x50], eax
call fcn.0043a980
mov eax, dword [esi + 0x50]
push 0x27
push eax
call fcn.0051f40b
mov edi, eax
add esp, 8
test edi, edi
je 0x47842f
mov ebp, 0x5c
nop
cmp edi, dword [esi + 0x50]
jbe 0x47842f
cmp word [edi - 2], bp
jne 0x47842f
push 0x27
add edi, 2
push edi
call fcn.0051f40b
mov edi, eax
add esp, 8
test edi, edi
jne 0x478410
mov ecx, dword [esi + 0x50]
cmp edi, ecx
jb 0x4784d4
mov eax, edi
sub eax, ecx
sar eax, 1
push eax
push ecx
inc eax
push eax
mov ecx, ebx
call fcn.004030d0
push eax
call fcn.00522cca
add esp, 0xc
mov ecx, ebx
call fcn.00425b80
mov ecx, edi
sub ecx, dword [esi + 0x50]
xor edx, edx
sar ecx, 1
mov word [eax + ecx*2], dx
or ebp, 0xffffffff
push ebp
mov ecx, ebx
call fcn.0040c2f0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push ebx
call fcn.00438190
mov dword [esp + 0x30], 6
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x34], ebp
call fcn.00477db0
add esp, 0xc
mov dword [esp + 0x28], 7
push eax
mov ecx, ebx
call fcn.00439f20
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x18]
call fcn.004381e0
add edi, 2
mov dword [esi + 0x50], edi
lea eax, [ebp + 8]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], ecx
mov eax, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00477bd0
mov dword [esp + 0x28], 3
lea edi, [esi + 0x47]
push eax
mov ecx, edi
call fcn.00439f20
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004381e0
mov ecx, edi
call fcn.00437d00
test eax, eax
jle 0x478192
mov eax, 7
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00477a20
mov dword [esp + 0x28], 2
lea edi, [esi + 0x47]
push eax
mov ecx, edi
call fcn.00439f20
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004381e0
mov ecx, edi
call fcn.00437d00
test eax, eax
jle 0x478192
mov eax, 6
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
mov dword [esi + 0x50], ebx
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret