Function at 0x40db20
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x427c24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
lea ebx, [esi + esi + 2]
cmp ebx, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], esi
jge 0x40dc66
lea esp, [esp]
mov ecx, dword [esp + 0x2c]
mov eax, ebx
imul eax, eax, 0x44
sub esp, 0x44
lea esi, [eax + ecx]
mov ebp, esp
lea edi, [esi - 0x44]
mov dword [esp + 0x58], esp
push edi
mov ecx, ebp
mov dword [esp + 0x60], ebp
call dword [0x42a484]
mov edx, dword [edi + 0x1c]
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp + 0x20]
mov byte [esp + 0x6c], 1
mov dword [ebp + 0x1c], edx
call dword [0x42a484]
mov ecx, dword [edi + 0x3c]
mov dword [ebp + 0x3c], ecx
mov dl, byte [edi + 0x40]
mov byte [ebp + 0x40], dl
sub esp, 0x44
mov edi, esp
mov dword [esp + 0xa0], esp
push esi
mov ecx, edi
mov byte [esp + 0xb0], 2
mov dword [esp + 0xa4], edi
call dword [0x42a484]
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x20]
push ecx
lea ecx, [edi + 0x20]
mov byte [esp + 0xb0], 3
mov dword [edi + 0x1c], eax
call dword [0x42a484]
mov edx, dword [esi + 0x3c]
mov dword [edi + 0x3c], edx
mov al, byte [esi + 0x40]
mov byte [edi + 0x40], al
mov byte [esp + 0xac], 0
call dword [esp + 0x104]
add esp, 0x88
test al, al
je 0x40dc0e
dec ebx
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
imul edi, edi, 0x44
mov esi, ebx
imul esi, esi, 0x44
add esi, eax
add edi, eax
push esi
mov ecx, edi
call dword [0x42a598]
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0x20]
mov dword [edi + 0x1c], ecx
push edx
lea ecx, [edi + 0x20]
call dword [0x42a598]
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x34]
mov cl, byte [esi + 0x40]
mov dword [esp + 0x30], ebx
lea ebx, [ebx + ebx + 2]
cmp ebx, eax
mov byte [edi + 0x40], cl
jl 0x40db60
mov esi, dword [esp + 0x30]
mov ebp, eax
cmp ebx, ebp
mov ebx, dword [esp + 0x2c]
jne 0x40dca9
mov edx, ebp
imul esi, esi, 0x44
imul edx, edx, 0x44
lea edi, [edx + ebx - 0x44]
add esi, ebx
push edi
mov ecx, esi
call dword [0x42a598]
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
call dword [0x42a598]
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov al, byte [edi + 0x40]
dec ebp
mov byte [esi + 0x40], al
mov dword [esp + 0x30], ebp
mov esi, ebp
mov ecx, dword [esp + 0x7c]
push ecx
sub esp, 0x44
mov edi, esp
mov dword [esp + 0x78], esp
lea edx, [esp + 0x80]
push edx
mov ecx, edi
mov dword [esp + 0x7c], edi
call dword [0x42a484]
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [edi + 0x20]
mov byte [esp + 0x70], 4
mov dword [edi + 0x1c], eax
call dword [0x42a484]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0xbc]
push ecx
mov dword [edi + 0x3c], edx
mov al, byte [esp + 0xc4]
push esi
push ebx
mov byte [edi + 0x40], al
mov byte [esp + 0x78], 0
call fcn.0040bce0
add esp, 0x54
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], 5
call dword [0x42a47c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
call dword [0x42a47c]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret