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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0x18], 0
push esi
xor ebp, ebp
mov dword [esp + 0x14], ebx
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebx
call fcn.1003fa70
mov esi, eax
mov edx, 0x5a4d
nop dword [eax + eax]
cmp word [esi], dx
jne 0x1003facb
mov ecx, dword [esi + 0x3c]
lea eax, [ecx - 0x40]
cmp eax, 0x3bf
ja 0x1003facb
cmp dword [ecx + esi], 0x4550
je 0x1003face
dec esi
jmp 0x1003fab0
mov eax, dword fs:[0x30]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003fc94
nop word [eax + eax]
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 0x1003fb0e
add ecx, 0xffffffe0
add edx, 0xffff
add ecx, edi
inc esi
test dx, dx
jne 0x1003fb00
cmp ecx, 0x6a4abc5b
jne 0x1003fbe2
mov ebx, dword [esp + 0x10]
mov edi, 3
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x28], eax
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
add ebx, esi
add ebp, esi
nop dword [eax + 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 0x1003fb60
cmp eax, 0xec0e4e8e
je 0x1003fb86
cmp eax, 0x7c0dfcaa
je 0x1003fb86
cmp eax, 0x91afca54
jne 0x1003fbce
mov ecx, dword [esp + 0x28]
movzx edx, word [ebp]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
cmp eax, 0xec0e4e8e
jne 0x1003fba6
mov eax, dword [ecx + esi]
add eax, esi
mov dword [esp + 0x20], eax
jmp 0x1003fbc8
cmp eax, 0x7c0dfcaa
jne 0x1003fbb8
mov eax, dword [ecx + esi]
add eax, esi
mov dword [esp + 0x18], eax
jmp 0x1003fbc8
cmp eax, 0x91afca54
jne 0x1003fbc8
mov eax, dword [ecx + esi]
add eax, esi
mov dword [esp + 0x1c], eax
add edi, 0xffff
add ebx, 4
add ebp, 2
test di, di
jne 0x1003fb50
jmp 0x1003fc60
cmp ecx, 0x3cfa685d
jne 0x1003fc68
mov ebx, dword [esp + 0x10]
mov ebp, 1
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x28], 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]
ror ecx, 0xd
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx]
test al, al
jne 0x1003fc20
cmp ecx, 0x534c0ab8
jne 0x1003fc55
mov eax, dword [esp + 0x28]
movzx ecx, word [esi]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
add ebp, 0xffff
mov dword [esp + 0x24], eax
add edi, 4
add esi, 2
test bp, bp
jne 0x1003fc11
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x20], 0
je 0x1003fc7e
test ebx, ebx
je 0x1003fc7e
test ebp, ebp
je 0x1003fc7e
cmp dword [esp + 0x24], 0
jne 0x1003fc90
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1003faf0
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 0x3c]
push 0x40
add ebx, esi
push 0x3000
mov dword [esp + 0x24], ebx
push dword [ebx + 0x50]
push 0
call ebp
mov ecx, dword [ebx + 0x54]
mov ebp, eax
mov dword [esp + 0x10], ebp
mov edx, esi
mov esi, ebp
test ecx, ecx
je 0x1003fccf
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 1]
sub ecx, 1
jne 0x1003fcc0
movzx edi, word [ebx + 0x14]
add edi, ebx
movzx ebx, word [ebx + 6]
test ebx, ebx
je 0x1003fd0f
mov eax, dword [esp + 0x14]
add edi, 0x2c
mov ecx, dword [edi - 8]
dec ebx
mov edx, dword [edi]
add ecx, ebp
mov esi, dword [edi - 4]
add edx, eax
test esi, esi
je 0x1003fd08
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
sub esi, 1
jne 0x1003fcf5
mov eax, dword [esp + 0x14]
add edi, 0x28
test ebx, ebx
jne 0x1003fce4
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x80]
add ebp, edx
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003fdb1
nop
add eax, edx
push eax
call dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp]
add edi, edx
add esi, edx
cmp dword [edi], 0
je 0x1003fd9f
mov ebp, edx
nop
test esi, esi
je 0x1003fd76
mov ecx, dword [esi]
test ecx, ecx
jns 0x1003fd76
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 0x1003fd83
mov eax, dword [edi]
add eax, 2
add eax, ebp
push eax
push ebx
call dword [esp + 0x20]
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 0x1003fd50
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x20]
add ebp, 0x14
mov dword [esp + 0x14], ebp
test eax, eax
jne 0x1003fd30
mov ebx, dword [esp + 0x1c]
mov edi, edx
sub edi, dword [ebx + 0x34]
cmp dword [ebx + 0xa4], 0
je 0x1003fe6e
mov ecx, dword [ebx + 0xa0]
add ecx, edx
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x1003fe6e
nop word [eax + eax]
mov esi, dword [ecx]
lea ebx, [eax - 8]
add esi, edx
lea ebp, [ecx + 8]
shr ebx, 1
je 0x1003fe59
nop
movzx edx, word [ebp]
dec ebx
mov ax, dx
mov ecx, edx
shr ax, 0xc
cmp ax, 0xa
jne 0x1003fe0f
and edx, 0xfff
add dword [edx + esi], edi
jmp 0x1003fe47
cmp ax, 3
jne 0x1003fe20
and ecx, 0xfff
add dword [ecx + esi], edi
jmp 0x1003fe47
cmp ax, 1
jne 0x1003fe37
and ecx, 0xfff
mov eax, edi
shr eax, 0x10
add word [ecx + esi], ax
jmp 0x1003fe47
cmp ax, 2
jne 0x1003fe47
and ecx, 0xfff
add word [ecx + esi], di
add ebp, 2
test ebx, ebx
jne 0x1003fdf0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
add ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1003fde0
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x28]
push 0
push 0
push 0xffffffffffffffff
add esi, edx
call dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
push 0
push 1
push ebp
call esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret