Function at 0x10078700
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cff98
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100fefb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov dword [ebp - 0x48], 0
push 0xc
xor eax, eax
mov dword [ebp - 0x44], 7
push 0x100e3ee4
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
call fcn.10006da0
mov ecx, esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10078792
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10006da0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1006e970
mov edx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 0
mov bl, al
cmp edx, 8
jb 0x100787ff
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100787f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078928
push edx
push ecx
call fcn.100b98ff
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x10078854
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007884a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007892d
push edx
push ecx
call fcn.100b98ff
add esp, 8
test bl, bl
je 0x100788f7
add esi, 0x18
push 2
push esi
call sub.msvcrt.dll_wcschr
mov ebx, eax
mov dword [ebp - 0x30], 0
add esp, 8
mov dword [ebp - 0x2c], 7
mov ecx, ebx
xor eax, eax
sub ecx, esi
mov word [ebp - 0x40], ax
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.10006da0
mov dword [ebp - 4], 2
call sub.msvcrt.dll__errno
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
mov edi, eax
lea eax, [ebp - 0x5c]
cmovae esi, dword [ebp - 0x40]
push 0xa
push eax
push esi
mov dword [edi], 0
call sub.msvcrt.dll_wcstol
add esp, 0xc
cmp esi, dword [ebp - 0x5c]
je 0x10078932
cmp dword [edi], 0x22
je 0x1007891e
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
lea ecx, [ebp - 0x40]
call fcn.10004a00
mov eax, dword [ebp - 0x64]
lea ecx, [ebx + 2]
lea edx, [ecx + 2]
mov dword [eax], ecx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100788e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b990d
mov esp, ebp
pop ebp
ret 0x14
push str.stoi_argument_out_of_range
call fcn.1008d077
call fcn.100bb050
call fcn.100bb050
push str.invalid_stoi_argument
call fcn.1008d037
int3