Function at 0x10138830
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
lea eax, [esi + 0xb0]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x10140530
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x40]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x34], fcn.1002a710
mov dword [esi + 0x3c], edx
mov edx, dword [ecx + 0x1c]
lea ecx, [esi + 0x2c]
mov dword [ecx], edx
lock inc dword [edx + 4]
mov dword [eax + 8], 1
push 0x102b4aa0
call fcn.1013c896
mov dword [esi + 0xc], eax
mov al, byte [ebp + 0x14]
lea ebx, [esi + 0x17]
mov byte [ebx], 0
movzx eax, al
lea ecx, [ebp + 0xc]
mov edx, dword [esi + 0x18]
lea edi, [esi + 0xa4]
push edi
lea edi, [esi + 0x3c]
push edi
lea edi, [esi + 0x30]
push edi
push dword [esi + 0xc]
push ebx
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push dword [edi + 4]
lea edi, [esi + 0x2c]
push edi
push eax
call fcn.10137b70
add esp, 0x24
test al, al
je 0x10138afe
mov ecx, dword [ebp + 0x20]
cmp byte [ecx + 0xb], 0
js 0x1013891e
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
jmp 0x1013892a
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
cmp byte [esi + 0x17], 0
je 0x10138946
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push 0x2d
call dword [eax + 0x1c]
movsx eax, al
mov ecx, dword [ebp + 0x20]
push eax
call fcn.10141120
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push 0x30
call dword [eax + 0x1c]
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x18], ecx
dec ecx
mov ebx, dword [ebp + 0x20]
cmp edx, ecx
jae 0x1013896c
cmp byte [edx], al
jne 0x1013896c
inc edx
cmp ecx, edx
jne 0x10138961
mov edx, ecx
mov al, byte [ebx + 0xb]
mov ecx, dword [esi + 0x18]
sub ecx, edx
test al, al
mov dword [esi + 0xc], ecx
mov dword [esi + 0x28], edx
js 0x1013899a
test ecx, ecx
je 0x10138afe
movzx ecx, al
mov dword [esi + 0x10], ecx
add ecx, ebx
mov dword [esi + 0x38], ecx
mov edx, 0xa
mov ecx, ebx
jmp 0x101389be
test ecx, ecx
je 0x10138afe
mov eax, dword [ebx + 8]
mov edx, eax
and edx, 0x7fffffff
dec edx
mov ecx, dword [ebx]
mov edi, dword [ebx + 4]
shr eax, 0x18
mov dword [esi + 0x10], edi
add edi, ecx
mov dword [esi + 0x38], edi
mov edi, dword [esi + 0x28]
cmp ecx, edi
ja 0x101389f2
cmp dword [esi + 0x38], edi
jbe 0x101389f2
xor eax, eax
dec eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
cmp eax, 0xfffffff0
jae 0x10138b6d
cmp eax, 0xa
ja 0x10138a5f
lea edi, [esi + 0x1c]
mov byte [edi + 0xb], al
jmp 0x10138a94
mov ecx, edx
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0xc]
jae 0x10138a28
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
add eax, edi
sub eax, edx
mov dword [esi + 0xb8], 1
mov ecx, ebx
xor ebx, ebx
push ebx
push ebx
push edi
push edi
push eax
push edx
call fcn.10140bae
mov ebx, dword [ebp + 0x20]
mov al, byte [ebx + 0xb]
mov edi, dword [esi + 0x28]
mov ecx, ebx
test al, al
jns 0x10138a30
mov ecx, dword [ebx]
add ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
cmp edi, edx
je 0x10138a44
mov al, byte [edi]
mov byte [ecx], al
inc ecx
inc edi
cmp edx, edi
jne 0x10138a3a
mov byte [ecx], 0
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
cmp byte [ebx + 0xb], 0
js 0x10138af1
mov byte [ebx + 0xb], al
jmp 0x10138af4
lea ecx, [eax + 0x10]
and ecx, 0xfffffff0
mov dword [esi + 0xb8], 1
mov dword [esi + 0x10], ecx
push ecx
call fcn.10216dd3
add esp, 4
mov edi, eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
or eax, 0x80000000
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], eax
mov ebx, dword [ebp + 0x20]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x28]
cmp eax, ecx
je 0x10138ab8
push dword [esi + 0xc]
push eax
push edi
call fcn.10208400
add esp, 0xc
add edi, dword [esi + 0xc]
mov dword [esi + 0xb8], 2
mov byte [edi], 0
lea edx, [esi + 0x1c]
movzx eax, byte [edx + 0xb]
test al, al
cmovs eax, dword [edx + 4]
cmovs edx, dword [edx]
mov dword [esi + 0xb8], 2
mov ecx, ebx
push eax
push edx
call fcn.10140eec
cmp byte [esi + 0x27], 0
jns 0x10138afe
push dword [esi + 0x1c]
call fcn.10205096
add esp, 4
jmp 0x10138afe
mov dword [ebx + 4], eax
mov dword [esi + 0xb8], 1
mov dword [esi + 0xb8], 1
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.1002ebde
mov edi, dword [ebp + 8]
test al, al
je 0x10138b21
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov ecx, dword [esi + 0x2c]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x10138b3a
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10138b55
mov dword [esi + 0xb8], 0
push eax
call dword [esi + 0x34]
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov dword [esi + 0xb8], 1
lea ecx, [esi + 0x1c]
call fcn.101407c4
nop
push ebp
sub esp, 0x24
lea esi, [ebp - 0xbc]
mov ebp, dword [esi + 0xa8]
cmp byte [esi + 0x27], 0
jns 0x10138ba1
push dword [esi + 0x1c]
call fcn.10205096
add esp, 4
add esp, 0x24
pop ebp
ret