Function at 0x470ef4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x470efc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x471323
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00470954
test al, al
je 0x471308
xor ebx, ebx
mov eax, dword [0x59ef6c]
cmp byte [eax], 0
jne 0x470fa5
mov eax, dword [0x59efd0]
cmp dword [eax + 0x14], 0
jne 0x470fa5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.0046d710
mov edx, eax
mov eax, dword [0x59e8ec]
add eax, 0x91
call fcn.00423c2c
mov esi, eax
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0xc]
call fcn.0046f028
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x10]
call fcn.004053e0
mov eax, dword [esi + 0x10]
call fcn.0040581c
mov edi, eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
call fcn.0046ebcc
mov eax, dword [0x59efd0]
mov dword [eax + 0x14], esi
mov eax, dword [0x59efd0]
mov dword [eax + 8], edi
mov eax, dword [0x59efd0]
movzx edx, word [ebp - 0x10]
mov word [eax + 4], dx
call fcn.0046e9c8
test al, al
je 0x470fe3
jmp 0x471075
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x47133c
call fcn.00425634
push 0x10
push 0x47135c
push 0x471368
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4712fe
push 0x4713c4
mov eax, dword [0x59efd0]
mov eax, dword [eax + 0x14]
push dword [eax]
push 0x4713d8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00425634
call fcn.0046ebcc
or eax, 0xffffffff
call fcn.0046ef0c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x471045
mov edx, 0x1b58
mov eax, 1
call fcn.0046ed00
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x471075
jmp 0x470fb3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x4713f0
call fcn.00425634
push 0x10
push 0x47135c
push 0x471408
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4712fe
mov eax, dword [0x59ef8c]
cmp byte [eax], 0
je 0x4710d9
mov eax, dword [0x59e8cc]
cmp dword [eax], 0
jne 0x4710a4
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x60]
mov edx, dword [0x46d84c]
xor eax, eax
call fcn.0046e14c
mov edx, dword [0x59e8cc]
mov dword [edx], eax
mov eax, dword [0x59e8cc]
mov eax, dword [eax]
call fcn.0046e0e0
mov eax, dword [0x59e8cc]
call fcn.00421d98
mov eax, dword [0x59eab4]
cmp byte [eax], 0
jne 0x4710d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x4714d0
call fcn.00425634
jmp 0x4712fe
push 0x8a
call fcn.00406f68
pop ecx
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x47125b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x59efd0]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
call fcn.0040581c
mov esi, eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004256a8
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004256a8
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004256a8
mov eax, dword [ebp - 0x24]
push eax
push esi
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004256a8
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.004256a8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00470de8
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x1c]
add ax, 0x2012
inc eax
mov edx, dword [ebp - 8]
mov word [edx + 2], ax
cmp ax, 0x2013
jne 0x471191
mov eax, dword [0x59e92c]
movzx eax, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx + 0x6d], al
mov eax, dword [0x59e9c4]
movzx eax, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx + 0x86], al
mov eax, dword [0x59e9c4]
movzx eax, byte [eax + 1]
mov edx, dword [ebp - 8]
mov byte [edx + 0x87], al
mov eax, dword [0x59e9c4]
movzx eax, byte [eax + 2]
mov edx, dword [ebp - 8]
mov byte [edx + 0x88], al
mov eax, dword [0x59e9c4]
movzx eax, byte [eax + 3]
mov edx, dword [ebp - 8]
mov byte [edx + 0x89], al
mov eax, dword [0x59ef8c]
cmp byte [eax], 0
jne 0x4711e7
mov ebx, 4
mov eax, dword [0x59ed74]
mov eax, dword [eax]
lea edx, [eax + 6]
push edx
push 0xffffffffffffffff
mov edx, dword [0x59ed74]
lea ecx, [eax + 4]
mov esi, 0x8a
sub esi, ebx
mov edx, esi
lea eax, [ebp - 8]
call fcn.0046e640
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x4714fc
call fcn.00425634
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0046ed64
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x471243
mov edx, 0x1b58
mov eax, 1
call fcn.0046ed00
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471262
mov eax, dword [ebp - 8]
push eax
call fcn.00406f78
pop ecx
ret
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.00470da0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47132a
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.004053b0
ret