Function at 0x101e72d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x102040ec
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x1044501c]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1044501c]
xor eax, esp
push eax
lea eax, [esp + 0x854]
mov dword fs:[0], eax
mov eax, dword [esp + 0x864]
mov ebx, dword [0x104450ec]
mov edi, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ebx
mov ebp, ebx
mov dword [esp + 0x85c], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x85c], 2
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x101e7346
sub eax, ecx
mov ecx, dword [edi + 0x6c]
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x84]
mov eax, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
lea esp, [esp]
mov ecx, dword [esp + 0x28]
mov esi, dword [edi + 0x84]
mov eax, dword [edi + 0x6c]
test ecx, ecx
je 0x101e7385
cmp ecx, eax
je 0x101e738b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x2c], esi
je 0x101e7a68
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x101e73a1
xor esi, esi
jmp 0x101e73b5
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101e73a4
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebx - 0xc]
cmp eax, 1
lea edi, [ebx - 0xc]
jg 0x101e73c5
cmp esi, dword [ebx - 4]
jle 0x101e742a
cmp eax, 0xfffffffe
je 0x101e73e8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x101e73de
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebx, dword [0x104450ec]
mov dword [esp + 0x20], ebx
test esi, esi
jne 0x101e73f8
mov ebx, dword [0x104450ec]
mov dword [esp + 0x20], ebx
jmp 0x101e7440
lea edi, [esi + 9]
and edi, 0xfffffff8
lea edx, [edi + edi + 0xc]
push edx
call fcn.101f2b74
add esp, 4
test eax, eax
je 0x101e7449
dec edi
xor ecx, ecx
mov dword [eax + 8], edi
mov dword [eax], 1
lea ebx, [eax + 0xc]
mov word [eax + esi*2 + 0xc], cx
mov dword [eax + 4], esi
mov dword [esp + 0x20], ebx
test esi, esi
jle 0x101e7440
mov eax, dword [esp + 0x34]
lea edx, [esi + esi]
push edx
push eax
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor ecx, ecx
mov dword [ebx - 8], esi
mov word [ebx + esi*2], cx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x101e74aa
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp edx, dword [eax + 0x18]
jne 0x101e7468
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
mov esi, dword [eax - 8]
test esi, esi
je 0x101e74bd
cmp dword [ebx - 0xc], 1
jg 0x101e74ae
mov ecx, dword [ebx - 8]
lea edx, [ecx + esi]
cmp edx, dword [ebx - 4]
jg 0x101e74ae
test esi, esi
jle 0x101e749c
lea edx, [esi + esi]
push edx
push eax
lea eax, [ebx + ecx*2]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [ebx - 8], esi
mov ecx, dword [ebx - 8]
xor edx, edx
mov word [ebx + ecx*2], dx
jmp 0x101e74bd
mov eax, dword [eax]
jmp 0x101e7459
push eax
mov eax, dword [ebx - 8]
push esi
push ebx
lea ecx, [esp + 0x2c]
call fcn.101f1e80
lea eax, [esp + 0x20]
call fcn.101f1c50
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 8]
lea ecx, [edx + ecx*2]
mov eax, edx
cmp edx, ecx
jae 0x101e74eb
cmp word [eax], 0x2f
jne 0x101e74e4
mov esi, 0x5c
mov word [eax], si
add eax, 2
cmp eax, ecx
jb 0x101e74d6
push 0x100
lea eax, [esp + 0x250]
push eax
push 0x100
lea ecx, [esp + 0x458]
push ecx
push 0x100
lea eax, [esp + 0x660]
push eax
push 3
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__wsplitpath_s]
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0xc]
mov ebx, 1
add esp, 0x24
cmp eax, ebx
lea edi, [ebx + 4]
jg 0x101e753a
cmp dword [ebp - 4], edi
jge 0x101e7584
cmp eax, 0xfffffffe
je 0x101e755d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x101e7553
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebp, dword [0x104450ec]
mov dword [esp + 0x18], ebp
push 0x1c
call fcn.101f2b74
add esp, 4
test eax, eax
je 0x101e75a9
xor edx, edx
mov dword [eax + 8], 7
mov dword [eax], ebx
lea ebp, [eax + 0xc]
mov word [eax + 0x16], dx
mov dword [eax + 4], edi
mov dword [esp + 0x18], ebp
mov eax, dword [str._rels]
mov dword [ebp], eax
mov ecx, dword [0x10262d18]
mov dword [ebp + 4], ecx
mov dx, word [0x10262d1c]
mov word [ebp + 8], dx
xor eax, eax
mov dword [ebp - 8], edi
mov word [ebp + 0xa], ax
cmp dword [ebp - 0xc], ebx
jg 0x101e75d4
mov eax, dword [ebp - 8]
lea ecx, [eax + 1]
cmp ecx, dword [ebp - 4]
jg 0x101e75d4
mov dx, word [0x10217794]
mov word [ebp + eax*2], dx
add dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [ebp + eax*2], cx
jmp 0x101e75eb
mov eax, dword [ebp - 8]
push 0x10217794
push ebx
push ebp
lea ecx, [esp + 0x24]
call fcn.101f1e80
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x44c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101e75f5
sub eax, edx
sar eax, 1
mov esi, eax
je 0x101e765e
cmp dword [ebp - 0xc], ebx
jg 0x101e7644
mov eax, dword [ebp - 8]
lea edx, [eax + esi]
cmp edx, dword [ebp - 4]
jg 0x101e7644
test esi, esi
jle 0x101e7635
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x450]
push edx
lea eax, [ebp + eax*2]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [ebp - 8], esi
mov ecx, dword [ebp - 8]
xor edx, edx
mov word [ebp + ecx*2], dx
jmp 0x101e765e
lea eax, [esp + 0x44c]
push eax
mov eax, dword [ebp - 8]
push esi
push ebp
lea ecx, [esp + 0x24]
call fcn.101f1e80
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x24c]
lea edx, [eax + 2]
jmp 0x101e7670
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101e7670
sub eax, edx
sar eax, 1
mov esi, eax
je 0x101e76d9
cmp dword [ebp - 0xc], ebx
jg 0x101e76bf
mov eax, dword [ebp - 8]
lea ecx, [eax + esi]
cmp ecx, dword [ebp - 4]
jg 0x101e76bf
test esi, esi
jle 0x101e76b0
lea edx, [esi + esi]
push edx
lea ecx, [esp + 0x250]
push ecx
lea edx, [ebp + eax*2]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [ebp - 8], esi
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [ebp + eax*2], cx
jmp 0x101e76d9
mov eax, dword [ebp - 8]
lea edx, [esp + 0x24c]
push edx
push esi
push ebp
lea ecx, [esp + 0x24]
call fcn.101f1e80
mov ebp, dword [esp + 0x18]
push str..rels
push ebp
lea eax, [esp + 0x654]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x54]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll__wmakepath_s]
mov ebp, dword [esp + 0x50]
lea ebp, [esp + ebp*2 + 0x5c]
add esp, 0x18
test ebp, ebp
jne 0x101e770f
xor esi, esi
jmp 0x101e7725
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101e7714
sub eax, edx
sar eax, 1
mov esi, eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
cmp eax, 1
lea edi, [ebx - 0xc]
jg 0x101e7739
cmp esi, dword [ebx - 4]
jle 0x101e779d
cmp eax, 0xfffffffe
je 0x101e775b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x101e7752
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x104450ec]
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x101e776b
mov ebx, dword [0x104450ec]
mov dword [esp + 0x1c], ebx
jmp 0x101e77af
lea edi, [esi + 9]
and edi, 0xfffffff8
lea ecx, [edi + edi + 0xc]
push ecx
call fcn.101f2b74
add esp, 4
test eax, eax
je 0x101e77b8
dec edi
xor edx, edx
mov dword [eax + 8], edi
mov dword [eax], 1
lea ebx, [eax + 0xc]
mov word [eax + esi*2 + 0xc], dx
mov dword [eax + 4], esi
mov dword [esp + 0x1c], ebx
test esi, esi
jle 0x101e77af
lea eax, [esi + esi]
push eax
push ebp
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor ecx, ecx
mov dword [ebx - 8], esi
mov word [ebx + esi*2], cx
lea eax, [esp + 0x1c]
call fcn.101f1c50
mov eax, dword [esp + 0x1c]
mov edx, dword [eax - 8]
lea ecx, [eax + edx*2]
cmp eax, ecx
jae 0x101e77e5
nop
cmp word [eax], 0x5c
jne 0x101e77de
mov edx, 0x2f
mov word [eax], dx
add eax, 2
cmp eax, ecx
jb 0x101e77d0
mov edx, dword [0x104450ec]
mov ebp, dword [esp + 0x1c]
add ebp, 2
mov ebx, edx
mov dword [esp + 0x24], ebx
jne 0x101e77fe
xor esi, esi
jmp 0x101e7814
mov eax, ebp
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101e7803
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, dword [edx - 0xc]
cmp eax, 1
lea edi, [edx - 0xc]
jg 0x101e7824
cmp esi, dword [edx - 4]
jle 0x101e7887
cmp eax, 0xfffffffe
je 0x101e7849
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x101e783d
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [0x104450ec]
mov ebx, edx
mov dword [esp + 0x24], ebx
test esi, esi
jne 0x101e7855
mov ebx, edx
mov dword [esp + 0x24], ebx
jmp 0x101e7899
lea edi, [esi + 9]
and edi, 0xfffffff8
lea eax, [edi + edi + 0xc]
push eax
call fcn.101f2b74
add esp, 4
test eax, eax
je 0x101e78a2
dec edi
xor ecx, ecx
mov dword [eax + 8], edi
mov dword [eax], 1
lea ebx, [eax + 0xc]
mov word [eax + esi*2 + 0xc], cx
mov dword [eax + 4], esi
mov dword [esp + 0x24], ebx
test esi, esi
jle 0x101e7899
lea edx, [esi + esi]
push edx
push ebp
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [ebx - 8], esi
mov word [ebx + esi*2], ax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xb0
mov byte [esp + 0x860], 3
call fcn.101e81e0
mov ebp, eax
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101e78c7
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
lea edx, [eax - 0xc]
jg 0x101e78eb
cmp esi, dword [eax - 4]
jle 0x101e7952
cmp ecx, 0xfffffffe
je 0x101e7913
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x101e790a
mov eax, dword [ebp]
sub eax, 0xc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [0x104450ec]
mov dword [ebp], edx
test esi, esi
jne 0x101e7921
mov eax, dword [0x104450ec]
mov dword [ebp], eax
jmp 0x101e796b
lea edi, [esi + 9]
and edi, 0xfffffff8
lea ecx, [edi + edi + 0xc]
push ecx
call fcn.101f2b74
add esp, 4
test eax, eax
je 0x101e797a
dec edi
mov dword [eax + 8], edi
mov dword [eax], 1
xor edx, edx
mov word [eax + esi*2 + 0xc], dx
mov dword [eax + 4], esi
add eax, 0xc
mov dword [ebp], eax
test esi, esi
jle 0x101e796b
mov edx, dword [ebp]
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp]
mov dword [eax - 8], esi
mov ecx, dword [ebp]
xor edx, edx
mov word [ecx + esi*2], dx
lea esi, [ebx - 0xc]
mov byte [esp + 0x85c], 2
cmp dword [esi], 0xfffffffe
je 0x101e799e
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x101e799e
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x28]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
jne 0x101e7a02
call ebp
xor eax, eax
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [eax + 0x18]
jne 0x101e79bb
call ebp
mov esi, dword [ebx + 0xc]
test edi, edi
jne 0x101e7a06
call ebp
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x101e79cd
call ebp
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x30]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x50]
call fcn.101e6950
test eax, eax
je 0x101e7a0a
lea esi, [esp + 0x28]
call fcn.1000fd60
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
jmp 0x101e7370
mov eax, dword [edi]
jmp 0x101e79b0
mov eax, dword [edi]
jmp 0x101e79c6
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x101e7a2c
push esi
call edi
test eax, eax
jg 0x101e7a2c
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x101e7a48
push esi
call edi
test eax, eax
jg 0x101e7a48
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x20]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x101e7a64
push esi
call edi
test eax, eax
jg 0x101e7a64
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
jmp 0x101e7ac1
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x101e7a8a
push esi
call edi
test eax, eax
jg 0x101e7a8a
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [ebp - 0xc], 0xfffffffe
lea esi, [ebp - 0xc]
je 0x101e7aa3
push esi
call edi
test eax, eax
jg 0x101e7aa3
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [ebx - 0xc], 0xfffffffe
lea esi, [ebx - 0xc]
je 0x101e7abc
push esi
call edi
test eax, eax
jg 0x101e7abc
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x854]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.101f2bc8
add esp, 0x84c
ret 4