Function at 0x402320
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4cb0d2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x4f87d8]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0x4bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4cc]
xor edi, edi
push 0x40e
lea ecx, [esp + 0xaa]
push edi
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0xb0], di
call fcn.004b1550
add esp, 0xc
push 0x208
lea edx, [esp + 0xa8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, 7
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], di
mov dword [esp + 0x4c4], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
mov byte [esp + 0x4c4], 1
lea eax, [esp + 0xa4]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
lea edx, [eax + 2]
jmp 0x4023f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4023f0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x20]
call fcn.00405810
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
mov byte [esp + 0x4c8], 2
call fcn.004164f0
add esp, 4
mov ebx, 8
mov byte [esp + 0x4c4], 4
cmp dword [esp + 0x30], ebx
jb 0x402448
mov edx, dword [esp + 0x1c]
push edx
call fcn.004a85e6
add esp, 4
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.0041a2a0
add esp, 4
push 1
push 0x4d4144
lea eax, [esp + 0x74]
call fcn.00405330
push 1
mov esi, eax
push 0x4d4148
lea eax, [esp + 0x74]
call fcn.00405330
cmp esi, 0xffffffff
mov ebp, eax
je 0x40255d
cmp ebp, 0xffffffff
je 0x40255d
cmp ebp, esi
jb 0x40255d
lea ecx, [esi + 1]
push ebp
lea esi, [esp + 0x38]
lea edx, [esp + 0x70]
call fcn.00405050
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x94]
mov byte [esp + 0x4d0], 5
call fcn.00405240
mov byte [esp + 0x4c4], 4
cmp dword [esp + 0x4c], ebx
jb 0x4024e4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004a85e6
add esp, 4
push 0xffffffffffffffff
lea ecx, [ebp + 1]
lea esi, [esp + 0x38]
lea edx, [esp + 0x70]
call fcn.00405050
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x4d0], 6
call fcn.00405240
cmp dword [esp + 0x4c], ebx
jb 0x40251e
mov edx, dword [esp + 0x38]
push edx
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0xa0], ebx
mov eax, dword [esp + 0x8c]
jae 0x402535
lea eax, [esp + 0x8c]
call fcn.00419dd0
cmp dword [esp + 0x68], ebx
mov esi, dword [esp + 0x14]
mov dword [esi + 0x384], eax
mov eax, dword [esp + 0x54]
jae 0x402552
lea eax, [esp + 0x54]
call fcn.00419dd0
mov dword [esi + 0x380], eax
cmp dword [esp + 0x84], ebx
jb 0x402573
mov eax, dword [esp + 0x70]
push eax
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0x68], ebx
mov esi, 7
mov word [esp + 0x70], di
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], esi
jb 0x40259e
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0xa0], ebx
mov word [esp + 0x54], di
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
jb 0x4025c4
mov edx, dword [esp + 0x8c]
push edx
call fcn.004a85e6
add esp, 4
mov ecx, dword [esp + 0x4bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.004a85d7
add esp, 0x4b4
ret 4