Function at 0x476890
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a86f8
push 0x47d4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], vtable.CCodeHook.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
call fcn.004733f0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00477540
mov dword [ebp - 0x2c], 0xa
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0
call fcn.004741a0
mov edx, dword [ebp - 0x50]
imul edx, edx, 0x118
mov dword [ebp - 0x48], edx
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.004740e0
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x48]
push ecx
call fcn.00471d50
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x48]
mov edx, dword [0x48c720]
mov dword [ecx], edx
mov eax, dword [0x48c724]
mov dword [ecx + 4], eax
mov dx, word [0x48c728]
mov word [ecx + 8], dx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x48]
add ecx, 6
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x48]
mov dword [eax + 2], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x2f], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x30], 0
lea edx, [ebp - 0x258]
push edx
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x34]
push ecx
push 0x48c71c
push 0x48c704
call fcn.0046b4c0
add esp, 0x14
lea edx, [ebp - 0x258]
push edx
call fcn.0046b160
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x24], 0
je 0x4769e0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x154]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x34]
push eax
push 0x48c71c
push str.e4801
call fcn.0046b4c0
add esp, 0x14
push 1
lea ecx, [ebp - 0x154]
push ecx
call fcn.0046b2a0
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.00477c90
test eax, eax
jne 0x476a33
mov dword [ebp - 0x38], 1
jmp 0x476a3a
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x38]
mov byte [eax + 0x2d], cl
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x2d]
test eax, eax
je 0x476a99
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x48]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x1d]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00477600
test eax, eax
jne 0x476a99
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x2c], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR110.dll__local_unwind2
add esp, 8
jmp 0x476c92
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 5
movzx eax, byte [ebp - 0x1d]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x154]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00477a20
mov ecx, dword [ebp + 0x1c]
and ecx, 1
jne 0x476b3e
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x48]
add eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov dword [ebp - 0x30], 0
jmp 0x476aef
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x118
jge 0x476b10
push 0
push 0
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x12
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 4]
push eax
call fcn.004741a0
jmp 0x476ae6
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x48]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
push 0
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004740e0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x48]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x48]
add ecx, 6
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00477c20
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x2c], 1
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x2d]
test eax, eax
jne 0x476bb9
push 9
call fcn.00470de0
test eax, eax
jne 0x476bb9
push 6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
push edx
call fcn.0046ed70
test eax, eax
jne 0x476bc1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, dword [edx + 0x16]
jne 0x476bc1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
movzx eax, word [edx + 4]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x1a]
cmp eax, edx
jne 0x476bc1
mov ecx, dword [ebp - 0x1c]
call fcn.004772f0
mov dword [ebp - 4], 4
call fcn.00476bcf
jmp 0x476be0
mov dword [ebp - 4], 3
call fcn.00476bee
jmp 0x476c0a
mov dword [ebp - 4], 2
call fcn.00476c18
jmp 0x476c29
mov dword [ebp - 4], 1
call fcn.00476c37
jmp 0x476c48
mov dword [ebp - 4], 0
call fcn.00476c56
jmp 0x476c66
mov dword [ebp - 4], 0xffffffff
jmp 0x476c92
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18