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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call fcn.1001b83b
mov ebx, eax
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1001b484
mov eax, dword [ebx + 0x3c]
lea ecx, [eax - 0x40]
cmp ecx, 0x3bf
ja 0x1001b484
cmp dword [eax + ebx], 0x4550
je 0x1001b487
dec ebx
jmp 0x1001b463
mov eax, dword fs:[0x30]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x30], 2
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], 1
mov edi, dword [eax + 0x14]
mov dword [ebp - 4], edi
test edi, edi
je 0x1001b646
mov edx, dword [edi + 0x28]
xor ecx, ecx
movzx esi, word [edi + 0x24]
movzx edi, byte [edx]
ror ecx, 0x13
cmp byte [edx], 0x61
jb 0x1001b4cd
add ecx, 0xffffffe0
add ecx, edi
add esi, 0xffff
inc edx
test si, si
jne 0x1001b4bf
cmp ecx, 0x5ff018bb
jne 0x1001b5a1
mov edi, dword [ebp - 4]
push 3
mov esi, dword [edi + 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 - 0x20], eax
mov edi, dword [ebp - 0x20]
pop eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx]
add ecx, esi
xor edx, edx
mov al, byte [ecx]
ror edx, 0x13
movsx eax, al
add edx, eax
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1001b517
cmp edx, 0x3b8ff745
je 0x1001b53e
cmp edx, 0x10d9d886
je 0x1001b53e
cmp edx, 0x6aa1cce4
jne 0x1001b58b
mov eax, dword [ebp - 0x24]
movzx ecx, word [edi]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
cmp edx, 0x10d9d886
jne 0x1001b55c
mov eax, dword [eax + esi]
add eax, esi
mov dword [ebp - 0x18], eax
jmp 0x1001b57e
cmp edx, 0x3b8ff745
jne 0x1001b56e
mov eax, dword [eax + esi]
add eax, esi
mov dword [ebp - 0x14], eax
jmp 0x1001b57e
cmp edx, 0x6aa1cce4
jne 0x1001b57e
mov eax, dword [eax + esi]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffff
mov dword [ebp - 0xc], eax
jmp 0x1001b58e
mov eax, dword [ebp - 0xc]
push 2
pop ecx
add ebx, 4
add edi, ecx
test ax, ax
jne 0x1001b50f
jmp 0x1001b61b
cmp ecx, 0x39b03133
jne 0x1001b61b
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x24], eax
mov edi, dword [eax + 0x20]
mov esi, dword [eax + 0x24]
add edi, edx
xor eax, eax
add esi, edx
inc eax
mov dword [ebp - 0xc], eax
mov ebx, dword [edi]
add ebx, edx
xor ecx, ecx
mov al, byte [ebx]
ror ecx, 0x13
movsx eax, al
add ecx, eax
inc ebx
mov al, byte [ebx]
test al, al
jne 0x1001b5d3
mov ebx, dword [ebp - 0x24]
cmp ecx, 0x57c5286b
jne 0x1001b60b
movzx ecx, word [esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffff
mov dword [ebp - 0xc], eax
jmp 0x1001b60e
mov eax, dword [ebp - 0xc]
push 2
pop ecx
add edi, 4
add esi, ecx
test ax, ax
jne 0x1001b5cb
cmp dword [ebp - 0x14], 0
mov edi, dword [ebp - 4]
je 0x1001b636
cmp dword [ebp - 0x18], 0
je 0x1001b636
cmp dword [ebp - 0x10], 0
je 0x1001b636
cmp dword [ebp - 0x1c], 0
jne 0x1001b643
mov edi, dword [edi]
mov dword [ebp - 4], edi
test edi, edi
jne 0x1001b4b6
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + 0x3c]
push 0x40
add esi, ebx
push 0x3000
mov dword [ebp - 0xc], esi
push dword [esi + 0x50]
push 0
call dword [ebp - 0x10]
mov ecx, dword [esi + 0x54]
mov edi, eax
mov dword [ebp - 0x10], edi
mov edx, edi
test ecx, ecx
je 0x1001b676
mov al, byte [ebx]
inc ebx
mov byte [edx], al
inc edx
sub ecx, 1
jne 0x1001b66b
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 6]
add ecx, 0x2c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001b6c5
mov eax, dword [ebp - 8]
add ecx, esi
mov esi, dword [ebp - 0x24]
mov edx, dword [ecx - 8]
dec esi
mov ebx, dword [ecx]
add edx, edi
mov edi, dword [ecx - 4]
add ebx, eax
mov dword [ebp - 0x24], edi
test edi, edi
mov edi, dword [ebp - 0x10]
je 0x1001b6bb
mov edi, dword [ebp - 0x24]
mov al, byte [ebx]
inc ebx
mov byte [edx], al
inc edx
sub edi, 1
jne 0x1001b6aa
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add ecx, 0x28
test esi, esi
jne 0x1001b690
mov esi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x80]
add ebx, edi
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1001b752
add eax, edi
push eax
call dword [ebp - 0x14]
mov esi, dword [ebx + 0x10]
mov edx, dword [ebx]
add esi, edi
add edx, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], edx
cmp dword [esi], 0
je 0x1001b742
mov ebx, eax
test edx, edx
je 0x1001b719
mov ecx, dword [edx]
test ecx, ecx
jns 0x1001b719
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 0x1001b728
mov eax, dword [esi]
add eax, 2
add eax, edi
push eax
push ebx
call dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [esi], eax
add esi, 4
test edx, edx
lea eax, [edx + 4]
cmove eax, edx
cmp dword [esi], 0
mov edx, eax
mov dword [ebp - 8], edx
jne 0x1001b6f3
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x20]
add ebx, 0x14
mov dword [ebp - 4], ebx
test eax, eax
jne 0x1001b6d7
mov esi, dword [ebp - 0xc]
mov eax, edi
sub eax, dword [esi + 0x34]
cmp dword [esi + 0xa4], 0
mov dword [ebp - 0x24], eax
je 0x1001b81a
mov edx, dword [esi + 0xa0]
add edx, edi
mov dword [ebp - 0x18], edx
mov eax, dword [edx + 4]
test eax, eax
je 0x1001b81a
mov esi, dword [ebp - 0x24]
mov ebx, dword [edx]
lea ecx, [edx + 8]
mov dword [ebp - 0x20], ecx
add ebx, edi
lea ecx, [eax - 8]
shr ecx, 1
mov dword [ebp - 0x24], ecx
je 0x1001b807
mov edx, dword [ebp - 0x20]
mov edi, ecx
movzx eax, word [edx]
dec edi
mov word [ebp - 2], ax
mov ecx, eax
shr word [ebp - 2], 0xc
cmp word [ebp - 2], 0xa
jne 0x1001b7b9
and eax, 0xfff
add dword [eax + ebx], esi
jmp 0x1001b7f5
mov ax, word [ebp - 2]
cmp ax, word [ebp - 0x28]
jne 0x1001b7ce
and ecx, 0xfff
add dword [ecx + ebx], esi
jmp 0x1001b7f5
cmp ax, word [ebp - 0x2c]
jne 0x1001b7e5
and ecx, 0xfff
mov eax, esi
shr eax, 0x10
add word [ecx + ebx], ax
jmp 0x1001b7f5
cmp ax, word [ebp - 0x30]
jne 0x1001b7f5
and ecx, 0xfff
add word [ecx + ebx], si
push 2
pop eax
add edx, eax
test edi, edi
jne 0x1001b799
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [edx + 4]
test eax, eax
jne 0x1001b780
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x28]
push 0
push 0
push 0xffffffffffffffff
add esi, edi
call dword [ebp - 0x1c]
push dword [ebp + 8]
xor eax, eax
inc eax
push eax
push edi
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4