Function at 0x405ad0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43c0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x4491fc]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4491fc]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov eax, dword [esp + 0x330]
mov ecx, dword [esp + 0x33c]
mov edi, dword [esp + 0x338]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x334]
xor ebx, ebx
mov dword [esp + 0x20], ecx
xor edx, edx
mov ecx, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x405b56
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xb4]
call fcn.00408360
mov dword [esp + 0x328], ebx
mov ecx, dword [esp + 0xc8]
mov ebp, dword [esp + 0xb4]
mov eax, ebp
cmp ecx, 8
jae 0x405b95
lea eax, [esp + 0xb4]
mov edx, dword [esp + 0xc4]
lea esi, [eax + edx*2]
cmp esi, ebx
je 0x405bca
mov eax, ebp
cmp ecx, 8
jae 0x405bb1
lea eax, [esp + 0xb4]
cmp eax, esi
ja 0x405bca
mov eax, ebp
cmp ecx, 8
jae 0x405bc3
lea eax, [esp + 0xb4]
lea eax, [eax + edx*2]
cmp esi, eax
jbe 0x405bcf
call fcn.0042694c
lea eax, [esp + 0xb0]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00407b30
mov ecx, 0x5c
cmp cx, word [eax]
je 0x405c04
push 1
push str.mscoree.dll
lea eax, [esp + 0xb8]
call fcn.00408150
lea edx, [esp + 0xb0]
push edx
mov ebx, 0x440bdc
lea esi, [esp + 0x7c]
call fcn.00408fe0
mov ebx, 8
add esp, 4
cmp dword [eax + 0x18], ebx
jb 0x405c2c
mov eax, dword [eax + 4]
jmp 0x405c2f
add eax, 4
lea ecx, [esp + 0xcc]
push ecx
push eax
call dword [0x43e1a0]
mov esi, eax
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x90], ebx
jb 0x405c5a
mov edx, dword [esp + 0x7c]
push edx
call fcn.00426a65
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
cmp esi, 0xffffffff
je 0x40607d
lea ecx, [esp + 0xf8]
mov eax, 0x440be0
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405cb6
test dx, dx
je 0x405cb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405cb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405c90
xor eax, eax
jmp 0x405cbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406056
lea ecx, [esp + 0xf8]
mov eax, 0x440be4
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405cf6
test dx, dx
je 0x405cf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405cf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405cd0
xor eax, eax
jmp 0x405cfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406056
test byte [esp + 0xcc], 0x10
je 0x405dc0
lea ecx, [esp + 0xf8]
mov eax, ecx
mov dword [edi + 0x18], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d20
mov ebp, dword [edi]
push edi
push 0
push 0x1132
sub eax, edx
mov edx, dword [esp + 0x3c]
push 0x3e9
sar eax, 1
push edx
mov dword [edi + 0x1c], eax
call dword [0x43e24c]
push eax
call dword [0x43e234]
mov dword [edi], eax
lea eax, [esp + 0xb0]
push eax
lea ebx, [esp + 0xfc]
lea esi, [esp + 0x48]
call fcn.00408fe0
add esp, 4
mov esi, 8
mov byte [esp + 0x328], 1
cmp dword [eax + 0x18], esi
jb 0x405d87
mov eax, dword [eax + 4]
jmp 0x405d8a
add eax, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push ecx
push edi
push eax
push edx
call fcn.00405ad0
add esp, 0x10
mov byte [esp + 0x328], 0
cmp dword [esp + 0x5c], esi
jb 0x405db9
mov eax, dword [esp + 0x48]
push eax
call fcn.00426a65
add esp, 4
mov dword [edi], ebp
jmp 0x406056
lea ecx, [esp + 0xb0]
push ecx
lea ebx, [esp + 0xfc]
lea esi, [esp + 0x48]
call fcn.00408fe0
add esp, 4
mov esi, 8
mov byte [esp + 0x328], 2
cmp dword [eax + 0x18], esi
jb 0x405df2
mov eax, dword [eax + 4]
jmp 0x405df5
add eax, 4
mov ecx, eax
call fcn.00405920
mov byte [esp + 0x328], 0
mov bl, al
cmp dword [esp + 0x5c], esi
jb 0x405e19
mov edx, dword [esp + 0x48]
push edx
call fcn.00426a65
add esp, 4
test bl, bl
je 0x406056
lea eax, [esp + 0xb0]
push eax
lea ebx, [esp + 0xfc]
lea esi, [esp + 0x48]
call fcn.00408fe0
add esp, 4
mov edi, 8
mov byte [esp + 0x328], 3
cmp dword [eax + 0x18], edi
jb 0x405e53
mov ebx, dword [eax + 4]
jmp 0x405e56
lea ebx, [eax + 4]
push 0x10
call fcn.004372d6
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x405e86
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov dword [esi], 0x440d80
mov dword [esp + 0x34], ebp
call fcn.004372e2
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x405e88
xor esi, esi
push esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00409520
mov byte [esp + 0x328], 5
cmp dword [esp + 0x5c], edi
jb 0x405eb6
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00426a65
add esp, 4
mov ebx, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], dx
cmp ebx, ebp
je 0x406019
mov eax, dword [ebx + 8]
mov dword [ebx + 8], ebp
cmp eax, ebp
jne 0x406019
push 0x10
call fcn.004372d6
cmp eax, ebp
je 0x405f03
mov ecx, dword [0x44be60]
mov edx, dword [0x44be5c]
mov esi, eax
call fcn.00405820
jmp 0x405f05
xor eax, eax
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.00409520
mov edi, dword [esp + 0x34]
cmp edi, ebp
je 0x406008
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
cmp eax, ebp
jne 0x406008
mov ecx, dword [0x44be5c]
mov edx, dword [0x44be60]
mov eax, edi
lea esi, [esp + 0x60]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
call fcn.004056b0
mov esi, ebx
mov byte [esp + 0x328], 7
call fcn.004057c0
mov dword [esp + 0x40], eax
call fcn.00405790
push eax
mov eax, dword [esp + 0x44]
push ebp
mov edx, eax
push ebp
lea eax, [esp + 0x74]
mov ecx, ebx
lea esi, [esp + 0x6c]
call fcn.004056f0
mov ecx, dword [edi + 4]
push 0xffffff
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.004372e8
cmp eax, ebp
je 0x405fa5
mov dword [edi + 8], eax
jmp 0x405ffe
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ebp
push edx
push eax
call dword [0x43e01c]
mov edi, eax
cmp edi, 0xffffffff
je 0x405ff3
lea ecx, [esp + 0xb0]
push ecx
lea ebx, [esp + 0xfc]
lea esi, [esp + 0x98]
call fcn.00408fe0
add esp, 4
mov ebx, eax
mov byte [esp + 0x328], 8
call fcn.00407960
mov dword [eax], edi
call fcn.00407780
xor ebp, ebp
mov edx, dword [esp + 0x24]
push edx
call dword [0x43e03c]
mov eax, dword [esp + 0x60]
push eax
call fcn.004372ca
lea eax, [esp + 0x34]
mov byte [esp + 0x328], 5
call fcn.00423440
mov byte [esp + 0x328], 0
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x406052
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x406052
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x406052
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xcc]
push ecx
push esi
call dword [0x43e158]
test eax, eax
jne 0x405c80
push esi
call dword [0x43e15c]
mov ebx, 8
cmp dword [esp + 0xc8], ebx
jb 0x406096
mov edx, dword [esp + 0xb4]
push edx
call fcn.00426a65
add esp, 4
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.00425eb3
add esp, 0x318
ret