Function at 0x86e840
Capabilities:
Check os version
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x949b26
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x99986c]
xor eax, esp
mov dword [esp + 0x1dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x99986c]
xor eax, esp
push eax
lea eax, [esp + 0x1f4]
mov dword fs:[0], eax
mov ebx, edx
mov ebp, dword [esp + 0x214]
mov eax, dword [esp + 0x204]
mov edx, dword [esp + 0x228]
mov edi, dword [esp + 0x210]
mov esi, dword [esp + 0x220]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x22c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], edx
test eax, eax
je 0x86ea3f
test ecx, ecx
je 0x86ea3f
cmp dword [ecx], 0x18
jne 0x86ea3f
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x86ea3f
cmp dword [ecx + 4], 0
je 0x86ea3f
cmp word [ecx], 0
je 0x86ea3f
cmp ebx, 5
ja 0x86ea3f
test esi, esi
je 0x86e919
test edx, edx
je 0x86e919
push 0xffffffffffffffff
push str.__EA_not_implemented_
mov ecx, edx
call fcn.0090a090
lea ecx, [esp + 0x34]
call fcn.00868800
mov ecx, dword [esp + 0x208]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x218]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x21c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x224]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
call fcn.00868840
cmp byte [esp + 0x71], 0
je 0x86e99f
mov al, byte [esp + 0x72]
jmp 0x86ea41
mov edi, dword [esp + 0x24]
cmp dword [edi + 4], 0
mov byte [esp + 0x17], 0
jne 0x86ea3f
lea ecx, [esp + 0x14c]
call fcn.0090a020
mov dword [esp + 0x1fc], 0
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
lea ecx, [esp + 0xa8]
call fcn.0090a020
mov byte [esp + 0x1fc], 1
mov ecx, dword [edi + 8]
movzx edx, word [ecx]
shr edx, 1
push edx
push esi
lea ecx, [esp + 0x154]
call fcn.0090a030
mov ecx, dword [esp + 0x14c]
lea eax, [esp + 0xa8]
push eax
push ecx
call fcn.008f02c0
add esp, 8
test al, al
jne 0x86ea69
mov byte [esp + 0x1fc], al
lea ecx, [esp + 0xa8]
call fcn.009098c0
mov dword [esp + 0x1fc], 0xffffffff
lea ecx, [esp + 0x14c]
call fcn.009098c0
xor al, al
mov ecx, dword [esp + 0x1f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0091b0aa
add esp, 0x1ec
ret
lea ecx, [esp + 0x34]
call fcn.00868820
xor esi, esi
cmp byte [esp + 0x6f], 0
jne 0x86ea80
mov esi, 0x40000000
mov eax, dword [esp + 0x21c]
test eax, 0x200000
je 0x86ea94
or esi, 0x200000
test al, 2
je 0x86ea9e
or esi, 0x80000000
test al, 4
je 0x86eaa8
or esi, 0x8000000
test al, 8
je 0x86eab2
or esi, 0x20000000
test eax, 0x800
je 0x86eabf
or esi, 0x10000000
test eax, 0x4400
je 0x86eacc
or esi, 0x2000000
cmp byte [esp + 0x6e], 0
je 0x86ead9
or esi, 0x4000000
and ebp, 0x1ffff
or esi, ebp
xor ebp, ebp
test ebx, ebx
je 0x86eb4f
cmp ebx, 2
jne 0x86eb2c
lea ebp, [ebx - 1]
mov edx, dword [esp + 0xa8]
push edx
call fcn.008982d0
or edi, 0xffffffff
cmp eax, edi
jne 0x86ebbf
call dword [0x982264]
cmp eax, 2
jne 0x86eb57
test byte [esp + 0x21c], 1
je 0x86eb57
cmp ebx, 3
je 0x86eb25
cmp ebx, eax
jne 0x86eb57
mov byte [esp + 0x17], 1
jmp 0x86eb57
cmp ebx, 1
jne 0x86eb36
lea ebp, [ebx + 2]
jmp 0x86eaef
cmp ebx, 3
jne 0x86eb40
lea ebp, [ebx + 1]
jmp 0x86eaef
cmp ebx, 4
jne 0x86eb4a
lea ebp, [ebx + 1]
jmp 0x86eb54
cmp ebx, 5
jne 0x86eb54
mov ebp, 2
or edi, 0xffffffff
cmp byte [esp + 0x6c], 0
je 0x86ec64
cmp ebx, 1
je 0x86ec5e
cmp ebx, 3
je 0x86ec5e
cmp ebx, 2
je 0x86ec5e
mov edx, dword [0x998168]
mov eax, dword [edx]
shr eax, 0x15
test al, 1
je 0x86eb9f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x86eb9f
push edi
push str.__FILE_DIRECTORY_FILE_
call fcn.0090a030
mov byte [esp + 0x1fc], 0
lea ecx, [esp + 0xa8]
call fcn.009098c0
mov dword [esp + 0x1fc], edi
jmp 0x86ea33
and eax, 0x10
je 0x86ec06
test byte [esp + 0x21c], 0x40
je 0x86ec06
mov eax, dword [esp + 0x18]
mov dword [eax], 0xc00000ba
mov byte [esp + 0x1fc], 0
lea ecx, [esp + 0xa8]
call fcn.009098c0
mov dword [esp + 0x1fc], edi
lea ecx, [esp + 0x14c]
call fcn.009098c0
mov al, 1
jmp 0x86ea41
test eax, eax
jne 0x86ec53
test byte [esp + 0x21c], 1
je 0x86ec4b
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0xc0000103
mov byte [esp + 0x1fc], al
lea ecx, [esp + 0xa8]
call fcn.009098c0
mov dword [esp + 0x1fc], edi
lea ecx, [esp + 0x14c]
call fcn.009098c0
mov al, 1
jmp 0x86ea41
test eax, eax
je 0x86eb57
or esi, 0x2000000
jmp 0x86eb57
or esi, 0x2000000
cmp byte [esp + 0x6d], 0
je 0x86ecaf
cmp ebx, 1
je 0x86ecaf
cmp ebx, 3
je 0x86ecaf
cmp ebx, 4
je 0x86ecaf
cmp ebx, 5
je 0x86ecaf
cmp ebx, 2
je 0x86ecaf
mov ecx, dword [0x998168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x86eb9f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x86eb9f
push edi
push str.__FILE_NON_DIRECTORY_FILE_
jmp 0x86eb9a
mov eax, dword [0x998168]
mov ecx, dword [eax]
shr ecx, 0x15
test cl, 1
je 0x86ecd1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x86ecd1
push edi
push str._new_CreateFile_
call fcn.0090a030
xor bl, bl
cmp byte [esp + 0x17], bl
je 0x86ed76
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
shr eax, 1
push 0
and eax, 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x7c], edx
push ecx
lea edx, [esp + 0x7c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xb0]
push edx
push eax
mov dword [esp + 0x84], 0xc
call fcn.0086cc40
add esp, 0x10
test al, al
je 0x86eb9f
cmp dword [esp + 0x24], 0
jne 0x86ed6f
call dword [0x982264]
push eax
call fcn.00865100
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
mov byte [esp + 0x1fc], bl
lea ecx, [esp + 0xa8]
call fcn.009098c0
mov dword [esp + 0x1fc], edi
lea ecx, [esp + 0x14c]
call fcn.009098c0
mov al, 1
jmp 0x86ea41
mov bl, 1
mov ebp, 3
mov eax, dword [esp + 0x218]
mov ecx, dword [esp + 0x208]
push 7
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0xb4]
push 0
push esi
push ebp
push 0
push eax
push ecx
push edx
call fcn.00870c80
test al, al
je 0x86eb9f
call dword [0x982264]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x86ee1c
push 4
push 0x28
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call fcn.008e07e0
mov edi, eax
mov eax, dword [esp + 0x20]
test edi, edi
jge 0x86ee1c
push eax
call fcn.0086b0d0
mov ecx, dword [esp + 0x18]
or esi, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [ecx], edi
mov byte [esp + 0x1fc], 0
lea ecx, [esp + 0xa8]
call fcn.009098c0
mov dword [esp + 0x1fc], esi
lea ecx, [esp + 0x14c]
call fcn.009098c0
mov al, 1
jmp 0x86ea41
cmp byte [esp + 0x6c], 0
mov cl, byte [esp + 0xa0]
je 0x86ee49
cmp eax, 0xffffffff
je 0x86ee49
test cl, 0x10
jne 0x86ee49
push eax
call fcn.0086b0d0
mov edx, dword [esp + 0x18]
mov dword [edx], 0xc0000103
jmp 0x86ef3d
mov dl, byte [esp + 0x6d]
test dl, dl
je 0x86ee70
cmp eax, 0xffffffff
je 0x86ee75
test cl, 0x10
je 0x86ee70
push eax
call fcn.0086b0d0
mov eax, dword [esp + 0x18]
mov dword [eax], 0xc00000ba
jmp 0x86ef3d
cmp eax, 0xffffffff
jne 0x86eecb
test dl, dl
je 0x86eeba
cmp esi, 3
jne 0x86eeba
mov ecx, dword [esp + 0xa8]
push 7
push 0x10
push ecx
call fcn.00898b80
add esp, 0xc
test al, al
je 0x86eea5
mov edx, dword [esp + 0x18]
mov dword [edx], 0xc00000ba
jmp 0x86ef3d
push 3
call fcn.00865100
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
jmp 0x86ef3d
push esi
call fcn.00865100
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edx], eax
jmp 0x86ef3d
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [edx], 0
mov dword [eax], 0
test bl, bl
jne 0x86ef04
cmp ebp, 2
jne 0x86eeff
sub esi, 0xb7
neg esi
sbb esi, esi
and esi, ebp
mov dword [eax + 4], esi
jmp 0x86ef3d
cmp ebp, 1
jne 0x86ef0d
mov dword [eax + 4], 2
jmp 0x86ef3d
cmp ebp, 4
jne 0x86ef23
xor ecx, ecx
cmp esi, 0xb7
setne cl
inc ecx
mov dword [eax + 4], ecx
jmp 0x86ef3d
cmp ebp, 3
jne 0x86ef31
mov dword [eax + 4], 1
jmp 0x86ef3d
cmp ebp, 5
jne 0x86ef3d
mov dword [eax + 4], 3
mov byte [esp + 0x1fc], 0
lea ecx, [esp + 0xa8]
call fcn.009098c0
mov dword [esp + 0x1fc], 0xffffffff
lea ecx, [esp + 0x14c]
call fcn.009098c0
mov al, 1
jmp 0x86ea41