Function at 0x10015720
Capabilities:
Access peb ldr_data
Check os version
Parse pe header
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], 0
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.10015b30
mov edx, eax
mov esi, 0x5a4d
nop dword [eax + eax]
cmp word [edx], si
jne 0x10015771
mov ecx, dword [edx + 0x3c]
lea eax, [ecx - 0x40]
cmp eax, 0x3bf
ja 0x10015771
cmp dword [ecx + edx], 0x4550
lea edi, [ecx + edx]
mov dword [ebp - 8], edi
je 0x10015774
dec edx
jmp 0x10015750
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], edx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 4], eax
test eax, eax
je 0x10015934
nop
mov esi, dword [eax + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x24]
nop dword [eax]
movzx edi, byte [esi]
ror ecx, 0xd
cmp byte [esi], 0x61
jb 0x100157ae
add ecx, 0xffffffe0
add edx, 0xffff
add ecx, edi
inc esi
test dx, dx
jne 0x100157a0
cmp ecx, 0x6a4abc5b
jne 0x10015881
mov ebx, dword [ebp - 4]
mov edi, 3
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [ebp - 0x24], eax
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ebx, esi
add eax, esi
mov dword [ebp - 0x10], eax
nop dword [eax]
mov edx, dword [ebx]
add edx, esi
xor eax, eax
mov cl, byte [edx]
nop dword [eax + eax]
ror eax, 0xd
lea edx, [edx + 1]
movsx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x10015800
cmp eax, 0xec0e4e8e
je 0x10015826
cmp eax, 0x7c0dfcaa
je 0x10015826
cmp eax, 0x91afca54
jne 0x1001586c
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
cmp eax, 0xec0e4e8e
jne 0x10015846
mov eax, dword [ecx + esi]
add eax, esi
mov dword [ebp - 0x18], eax
jmp 0x10015866
cmp eax, 0x7c0dfcaa
jne 0x10015857
mov eax, dword [ecx + esi]
add eax, esi
mov dword [ebp - 0x1c], eax
jmp 0x10015866
cmp eax, 0x91afca54
jne 0x10015866
mov eax, dword [ecx + esi]
add eax, esi
mov dword [ebp - 0x14], eax
add edi, 0xffff
add dword [ebp - 0x10], 2
add ebx, 4
test di, di
jne 0x100157f0
jmp 0x10015908
cmp ecx, 0x3cfa685d
jne 0x1001590b
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], 1
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [ebp - 0x24], eax
mov edi, dword [eax + 0x20]
mov esi, dword [eax + 0x24]
add edi, ebx
add esi, ebx
mov edx, dword [edi]
add edx, ebx
xor ecx, ecx
mov al, byte [edx]
nop dword [eax + eax]
ror ecx, 0xd
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx]
test al, al
jne 0x100158c0
cmp ecx, 0x534c0ab8
jne 0x100158fa
mov eax, dword [ebp - 0x24]
movzx ecx, word [esi]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0xffff
mov dword [ebp - 0x10], eax
jmp 0x100158fd
mov eax, dword [ebp - 0x10]
add edi, 4
add esi, 2
test ax, ax
jne 0x100158b0
mov ebx, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x10015921
cmp dword [ebp - 0x1c], 0
je 0x10015921
test ebx, ebx
je 0x10015921
cmp dword [ebp - 0x20], 0
jne 0x10015931
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015790
mov edi, dword [ebp - 8]
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call ebx
mov edx, dword [edi + 0x54]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 4], esi
test edx, edx
je 0x10015968
mov edi, esi
sub edi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
sub edx, 1
jne 0x10015957
mov edi, dword [ebp - 8]
movzx ebx, word [edi + 6]
movzx eax, word [edi + 0x14]
test ebx, ebx
je 0x100159b1
add eax, 0x2c
add edi, eax
mov eax, dword [ebp - 0xc]
nop dword [eax]
mov ecx, dword [edi - 8]
dec ebx
mov edx, dword [edi]
add ecx, esi
mov esi, dword [edi - 4]
add edx, eax
test esi, esi
je 0x100159a4
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub esi, 1
jne 0x10015991
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
add edi, 0x28
test ebx, ebx
jne 0x10015980
mov edi, dword [ebp - 8]
mov edi, dword [edi + 0x80]
mov edx, dword [ebp - 4]
add edi, edx
mov dword [ebp - 0x14], edi
cmp dword [edi + 0xc], 0
je 0x10015a39
mov eax, dword [edi + 0xc]
add eax, edx
push eax
call dword [ebp - 0x18]
mov esi, dword [edi]
mov ebx, eax
mov edx, dword [ebp - 4]
add esi, edx
mov edi, dword [edi + 0x10]
add edi, edx
cmp dword [edi], 0
je 0x10015a2a
test esi, esi
je 0x10015a07
mov ecx, dword [esi]
test ecx, ecx
jns 0x10015a07
mov eax, dword [ebx + 0x3c]
movzx ecx, cx
mov eax, dword [eax + ebx + 0x78]
sub ecx, dword [eax + ebx + 0x10]
mov eax, dword [eax + ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
jmp 0x10015a16
mov eax, dword [edi]
add edx, 2
add eax, edx
push eax
push ebx
call dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [edi], eax
add edi, 4
test esi, esi
lea eax, [esi + 4]
cmove eax, esi
cmp dword [edi], 0
mov esi, eax
jne 0x100159e1
mov edi, dword [ebp - 0x14]
add edi, 0x14
mov dword [ebp - 0x14], edi
cmp dword [edi + 0xc], 0
jne 0x100159c5
mov edi, dword [ebp - 8]
mov ebx, edx
sub ebx, dword [edi + 0x34]
cmp dword [edi + 0xa4], 0
je 0x10015b0c
mov ecx, dword [edi + 0xa0]
add ecx, edx
mov eax, dword [ecx + 4]
lea esi, [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
test eax, eax
je 0x10015b0c
nop word [eax + eax]
mov edi, dword [ecx]
add eax, 0xfffffff8
add ecx, 8
add edi, edx
shr eax, 1
mov dword [ebp - 0x1c], ecx
je 0x10015af0
movzx edx, word [ecx]
dec eax
mov dword [ebp - 0x24], eax
mov ecx, edx
mov ax, dx
shr ax, 0xc
movzx esi, ax
cmp ax, 0xa
jne 0x10015aa5
and edx, 0xfff
add dword [edx + edi], ebx
jmp 0x10015ada
cmp esi, 3
jne 0x10015ab5
and ecx, 0xfff
add dword [ecx + edi], ebx
jmp 0x10015ada
cmp esi, 1
jne 0x10015acb
and ecx, 0xfff
mov eax, ebx
shr eax, 0x10
add word [ecx + edi], ax
jmp 0x10015ada
cmp esi, 2
jne 0x10015ada
and ecx, 0xfff
add word [ecx + edi], bx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
add ecx, 2
mov dword [ebp - 0x1c], ecx
test eax, eax
jne 0x10015a81
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, dword [esi]
mov eax, dword [ecx + 4]
lea esi, [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
test eax, eax
jne 0x10015a70
mov edi, dword [ebp - 8]
mov esi, dword [edi + 0x28]
push 0
push 0
push 0xffffffffffffffff
add esi, edx
call dword [ebp - 0x20]
push dword [ebp + 8]
push 1
push dword [ebp - 4]
call esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4