Function at 0x417800
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48bbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ace70]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, edi
mov dword [esp + 0x38], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417836
sub eax, edx
sar eax, 1
lea ebx, [edi + eax*2]
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x24], ebx
call fcn.0041ce90
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x41793d
cmp esi, 0xfffffffc
je 0x417886
test esi, esi
je 0x417881
cmp esi, dword [esp + 0x28]
je 0x417886
call fcn.00469f76
cmp ebp, dword [esp + 0x2c]
je 0x41793d
cmp esi, 0xfffffffc
je 0x4178bb
test esi, esi
jne 0x41789e
call fcn.00469f76
cmp dword [esi + 0x18], 8
jb 0x4178a9
mov eax, dword [esi + 4]
jmp 0x4178ac
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
lea eax, [eax + edx*2]
cmp ebp, eax
jb 0x4178bb
call fcn.00469f76
mov ecx, dword [esp + 0x14]
movzx edi, word [ecx]
lea edx, [esp + 0x44]
push edx
call fcn.00412670
mov edx, dword [eax]
add esp, 4
mov ecx, eax
mov eax, dword [edx + 0x20]
push edi
call eax
movzx ebx, word [ebp]
lea ecx, [esp + 0x44]
push ecx
movzx edi, ax
call fcn.00412670
mov edx, dword [eax]
add esp, 4
mov ecx, eax
mov eax, dword [edx + 0x20]
push ebx
call eax
cmp di, ax
jne 0x417965
add dword [esp + 0x14], 2
cmp esi, 0xfffffffc
je 0x41792c
test esi, esi
jne 0x41790f
call fcn.00469f76
cmp dword [esi + 0x18], 8
jb 0x41791a
mov eax, dword [esi + 4]
jmp 0x41791d
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jb 0x41792c
call fcn.00469f76
mov eax, dword [esp + 0x14]
add ebp, 2
cmp eax, dword [esp + 0x1c]
jne 0x417872
cmp esi, 0xfffffffc
je 0x417951
test esi, esi
je 0x41794c
cmp esi, dword [esp + 0x28]
je 0x417951
call fcn.00469f76
cmp ebp, dword [esp + 0x2c]
jne 0x4179c8
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ecx
jne 0x4179c8
mov bl, 1
jmp 0x4179ca
mov dword [esp + 0x38], 0xffffffff
mov edi, dword [esp + 0x44]
test edi, edi
je 0x4179b2
push 0
lea ecx, [esp + 0x18]
call fcn.004683c9
mov eax, dword [edi + 4]
test eax, eax
jbe 0x417990
cmp eax, 0xffffffff
jae 0x417990
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.004683f1
test esi, esi
je 0x4179b2
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
mov edi, dword [esp + 0x44]
test edi, edi
je 0x417a17
push 0
lea ecx, [esp + 0x1c]
call fcn.004683c9
mov eax, dword [edi + 4]
test eax, eax
jbe 0x4179f5
cmp eax, 0xffffffff
jae 0x4179f5
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.004683f1
test esi, esi
je 0x417a17
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret