Function at 0x10081380
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f23c0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10129fe8]
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 edi, dword [ebp + 0xc]
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 - 0x30], 0
push 0xc
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x10102724
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
call fcn.10007670
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 0x10081415
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10007670
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10078890
mov edx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 0
mov bl, al
cmp edx, 8
jb 0x10081482
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10081478
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10081678
push edx
push ecx
call fcn.100c3eef
add esp, 8
mov edx, dword [ebp - 0x2c]
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 0x100814d7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100814cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008167d
push edx
push ecx
call fcn.100c3eef
add esp, 8
test bl, bl
je 0x10081647
add esi, 0x18
push 3
push esi
call fcn.100c7973
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x14], 7
mov ecx, ebx
xor eax, eax
sub ecx, esi
mov word [ebp - 0x28], ax
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10007670
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10078ee0
mov ecx, eax
add esp, 8
cmp dword [ecx + 0x14], 0x10
jb 0x10081534
mov ecx, dword [ecx]
sub edi, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx + 0x1cf], al
test al, al
jne 0x10081540
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10081584
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1008157a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10081682
push edx
push ecx
call fcn.100c3eef
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
call fcn.10004dd0
lea esi, [ebx + 2]
push 2
push esi
call fcn.100c7973
mov ebx, eax
mov dword [ebp - 0x48], 0
add esp, 8
mov dword [ebp - 0x44], 7
mov ecx, ebx
xor eax, eax
sub ecx, esi
mov word [ebp - 0x58], ax
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.10007670
mov dword [ebp - 4], 3
call fcn.100cf2a2
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
mov edi, eax
lea eax, [ebp - 0x5c]
cmovae esi, dword [ebp - 0x58]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.100d0576
add esp, 0xc
cmp esi, dword [ebp - 0x5c]
je 0x10081687
cmp dword [edi], 0x22
je 0x1008166e
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
lea ecx, [ebp - 0x58]
call fcn.10004dd0
mov eax, dword [ebp - 0x64]
lea ecx, [ebx + 2]
lea edx, [ecx + 2]
mov dword [eax], ecx
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10081630
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.100c3efd
mov esp, ebp
pop ebp
ret 0x14
push str.stoi_argument_out_of_range
call fcn.10097667
call fcn.100cf1d9
call fcn.100cf1d9
call fcn.100cf1d9
push str.invalid_stoi_argument
call fcn.10097627
int3