Function at 0xf5a5ec0
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, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], 0
xor edi, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], ebx
call fcn.0f5a5eb0
mov edx, eax
mov esi, 0x5a4d
lea esp, [esp]
cmp word [edx], si
jne 0xf5a5f0b
mov ecx, dword [edx + 0x3c]
lea eax, [ecx - 0x40]
cmp eax, 0x3bf
ja 0xf5a5f0b
cmp dword [ecx + edx], 0x4550
je 0xf5a5f0e
dec edx
jmp 0xf5a5ef0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], edx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 4], eax
test eax, eax
je 0xf5a60c5
jmp 0xf5a5f30
mov esi, dword [eax + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x24]
lea esp, [esp]
mov al, byte [esi]
ror ecx, 0xd
cmp al, 0x61
movzx eax, al
jb 0xf5a5f4f
add ecx, 0xffffffe0
add edx, 0xffff
add ecx, eax
inc esi
test dx, dx
jne 0xf5a5f40
cmp ecx, 0x6a4abc5b
jne 0xf5a601d
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 - 0x20], eax
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ebx, esi
add eax, esi
mov dword [ebp - 0x10], eax
lea ecx, [ecx]
mov edx, dword [ebx]
add edx, esi
xor eax, eax
mov cl, byte [edx]
jmp 0xf5a5fa0
ror eax, 0xd
lea edx, [edx + 1]
movsx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0xf5a5fa0
cmp eax, 0xec0e4e8e
je 0xf5a5fc6
cmp eax, 0x7c0dfcaa
je 0xf5a5fc6
cmp eax, 0x91afca54
jne 0xf5a600b
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
add ecx, esi
cmp eax, 0xec0e4e8e
jne 0xf5a5fe7
mov eax, dword [ecx]
add eax, esi
mov dword [ebp - 0x18], eax
jmp 0xf5a6005
cmp eax, 0x7c0dfcaa
jne 0xf5a5ff7
mov eax, dword [ecx]
add eax, esi
mov dword [ebp - 0xc], eax
jmp 0xf5a6005
cmp eax, 0x91afca54
jne 0xf5a6005
mov eax, dword [ecx]
add eax, esi
mov dword [ebp - 0x14], eax
add edi, 0xffff
add dword [ebp - 0x10], 2
add ebx, 4
test di, di
jne 0xf5a5f90
jmp 0xf5a6098
cmp ecx, 0x3cfa685d
jne 0xf5a609e
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 - 0x20], eax
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
add esi, ebx
add edi, ebx
mov edx, dword [esi]
add edx, ebx
xor ecx, ecx
mov al, byte [edx]
ror ecx, 0xd
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx]
test al, al
jne 0xf5a6050
cmp ecx, 0x534c0ab8
jne 0xf5a608a
mov eax, dword [ebp - 0x20]
movzx ecx, word [edi]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add eax, 0xffff
mov dword [ebp - 0x10], eax
jmp 0xf5a608d
mov eax, dword [ebp - 0x10]
add esi, 4
add edi, 2
test ax, ax
jne 0xf5a6048
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0xf5a60b2
test edi, edi
je 0xf5a60b2
test ebx, ebx
je 0xf5a60b2
cmp dword [ebp - 0x1c], 0
jne 0xf5a60c2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jne 0xf5a5f30
mov edx, dword [ebp - 8]
mov edi, dword [edx + 0x3c]
add edi, edx
push 0x40
push 0x3000
mov dword [ebp - 0x14], edi
push dword [edi + 0x50]
push 0
call ebx
mov edx, dword [edi + 0x54]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, eax
mov dword [ebp - 4], esi
test edx, edx
je 0xf5a60ff
sub esi, eax
mov edi, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
dec edx
jne 0xf5a60f0
mov esi, dword [ebp - 4]
movzx ebx, word [edi + 6]
movzx eax, word [edi + 0x14]
test ebx, ebx
je 0xf5a6142
add eax, 0x2c
add edi, eax
mov eax, dword [ebp - 8]
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 0xf5a6135
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
dec esi
jne 0xf5a6124
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
add edi, 0x28
test ebx, ebx
jne 0xf5a6113
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 0x80]
mov edx, dword [ebp - 4]
add esi, edx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0xf5a61c9
add eax, edx
push eax
call dword [ebp - 0x18]
mov edi, dword [esi]
mov ebx, eax
mov edx, dword [ebp - 4]
add edi, edx
mov esi, dword [esi + 0x10]
add esi, edx
cmp dword [esi], 0
je 0xf5a61b6
test edi, edi
je 0xf5a6196
mov ecx, dword [edi]
test ecx, ecx
jns 0xf5a6196
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 0xf5a61a5
mov eax, dword [esi]
add edx, 2
add eax, edx
push eax
push ebx
call dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [esi], eax
add esi, 4
test edi, edi
je 0xf5a61b1
add edi, 4
cmp dword [esi], 0
jne 0xf5a6170
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0xc]
test eax, eax
jne 0xf5a6157
mov edi, dword [ebp - 0x14]
mov esi, edx
sub esi, dword [edi + 0x34]
cmp dword [edi + 0xa4], 0
je 0xf5a6281
mov ecx, dword [edi + 0xa0]
add ecx, edx
mov dword [ebp - 0x18], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
test eax, eax
je 0xf5a6281
mov edx, dword [ecx]
lea edi, [eax - 8]
add edx, dword [ebp - 4]
lea ebx, [ecx + 8]
shr edi, 1
je 0xf5a6263
movzx ecx, word [ebx]
dec edi
mov ax, cx
shr ax, 0xc
cmp ax, 0xa
jne 0xf5a6221
and ecx, 0xfff
add dword [ecx + edx], esi
jmp 0xf5a6259
cmp ax, 3
jne 0xf5a6232
and ecx, 0xfff
add dword [ecx + edx], esi
jmp 0xf5a6259
cmp ax, 1
jne 0xf5a6249
and ecx, 0xfff
mov eax, esi
shr eax, 0x10
add word [ecx + edx], ax
jmp 0xf5a6259
cmp ax, 2
jne 0xf5a6259
and ecx, 0xfff
add word [ecx + edx], si
add ebx, 2
test edi, edi
jne 0xf5a6205
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
test eax, eax
jne 0xf5a61f6
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 0x28]
push 0
push 0
push 0xffffffffffffffff
add esi, edx
call dword [ebp - 0x1c]
push 0
push 1
push dword [ebp - 4]
call esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret