Function at 0x470928
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x470930
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470d57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00470388
test al, al
je 0x470d3c
xor ebx, ebx
mov eax, dword [0x59df6c]
cmp byte [eax], 0
jne 0x4709d9
mov eax, dword [0x59dfd0]
cmp dword [eax + 0x14], 0
jne 0x4709d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.0046d144
mov edx, eax
mov eax, dword [0x59d8ec]
add eax, 0x91
call fcn.00423c2c
mov esi, eax
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0xc]
call fcn.0046ea5c
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.0046e600
mov eax, dword [0x59dfd0]
mov dword [eax + 0x14], esi
mov eax, dword [0x59dfd0]
mov dword [eax + 8], edi
mov eax, dword [0x59dfd0]
movzx edx, word [ebp - 0x10]
mov word [eax + 4], dx
call fcn.0046e3fc
test al, al
je 0x470a17
jmp 0x470aa9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x470d70
call fcn.00425634
push 0x10
push 0x470d90
push 0x470d9c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x470d32
push 0x470df8
mov eax, dword [0x59dfd0]
mov eax, dword [eax + 0x14]
push dword [eax]
push 0x470e0c
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.0046e600
or eax, 0xffffffff
call fcn.0046e940
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x470a79
mov edx, 0x1b58
mov eax, 1
call fcn.0046e734
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x470aa9
jmp 0x4709e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x470e24
call fcn.00425634
push 0x10
push 0x470d90
push 0x470e3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x470d32
mov eax, dword [0x59df8c]
cmp byte [eax], 0
je 0x470b0d
mov eax, dword [0x59d8cc]
cmp dword [eax], 0
jne 0x470ad8
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x60]
mov edx, dword [0x46d280]
xor eax, eax
call fcn.0046db80
mov edx, dword [0x59d8cc]
mov dword [edx], eax
mov eax, dword [0x59d8cc]
mov eax, dword [eax]
call fcn.0046db14
mov eax, dword [0x59d8cc]
call fcn.00421d98
mov eax, dword [0x59dab4]
cmp byte [eax], 0
jne 0x470b0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x470f04
call fcn.00425634
jmp 0x470d32
push 0x8a
call fcn.00406f68
pop ecx
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x470c8f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x59dfd0]
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.0047081c
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 0x470bc5
mov eax, dword [0x59d92c]
movzx eax, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx + 0x6d], al
mov eax, dword [0x59d9c4]
movzx eax, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx + 0x86], al
mov eax, dword [0x59d9c4]
movzx eax, byte [eax + 1]
mov edx, dword [ebp - 8]
mov byte [edx + 0x87], al
mov eax, dword [0x59d9c4]
movzx eax, byte [eax + 2]
mov edx, dword [ebp - 8]
mov byte [edx + 0x88], al
mov eax, dword [0x59d9c4]
movzx eax, byte [eax + 3]
mov edx, dword [ebp - 8]
mov byte [edx + 0x89], al
mov eax, dword [0x59df8c]
cmp byte [eax], 0
jne 0x470c1b
mov ebx, 4
mov eax, dword [0x59dd74]
mov eax, dword [eax]
lea edx, [eax + 6]
push edx
push 0xffffffffffffffff
mov edx, dword [0x59dd74]
lea ecx, [eax + 4]
mov esi, 0x8a
sub esi, ebx
mov edx, esi
lea eax, [ebp - 8]
call fcn.0046e074
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x470f30
call fcn.00425634
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0046e798
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x470c77
mov edx, 0x1b58
mov eax, 1
call fcn.0046e734
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470c96
mov eax, dword [ebp - 8]
push eax
call fcn.00406f78
pop ecx
ret
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.004707d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470d5e
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.004053b0
ret