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

Disassembly:
push 0xffffffffffffffff
push 0x1d67db6
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x1dbb89c]
xor eax, esp
mov dword [esp + 0x1dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1dbb89c]
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 0x1c85d4f
test ecx, ecx
je 0x1c85d4f
cmp dword [ecx], 0x18
jne 0x1c85d4f
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1c85d4f
cmp dword [ecx + 4], 0
je 0x1c85d4f
cmp word [ecx], 0
je 0x1c85d4f
cmp ebx, 5
ja 0x1c85d4f
test esi, esi
je 0x1c85c29
test edx, edx
je 0x1c85c29
push 0xffffffffffffffff
push str.__EA_not_implemented_
mov ecx, edx
call fcn.01d26f60
lea ecx, [esp + 0x34]
call fcn.01c7c100
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.01c7c140
cmp byte [esp + 0x71], 0
je 0x1c85caf
mov al, byte [esp + 0x72]
jmp 0x1c85d51
mov edi, dword [esp + 0x24]
cmp dword [edi + 4], 0
mov byte [esp + 0x17], 0
jne 0x1c85d4f
lea ecx, [esp + 0x14c]
call fcn.01d26ef0
mov dword [esp + 0x1fc], 0
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
lea ecx, [esp + 0xa8]
call fcn.01d26ef0
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.01d26f00
mov ecx, dword [esp + 0x14c]
lea eax, [esp + 0xa8]
push eax
push ecx
call fcn.01d12910
add esp, 8
test al, al
jne 0x1c85d79
mov byte [esp + 0x1fc], al
lea ecx, [esp + 0xa8]
call fcn.01d26680
mov dword [esp + 0x1fc], 0xffffffff
lea ecx, [esp + 0x14c]
call fcn.01d26680
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.01d389aa
add esp, 0x1ec
ret
lea ecx, [esp + 0x34]
call fcn.01c7c120
xor esi, esi
cmp byte [esp + 0x6f], 0
jne 0x1c85d90
mov esi, 0x40000000
mov eax, dword [esp + 0x21c]
test eax, 0x200000
je 0x1c85da4
or esi, 0x200000
test al, 2
je 0x1c85dae
or esi, 0x80000000
test al, 4
je 0x1c85db8
or esi, 0x8000000
test al, 8
je 0x1c85dc2
or esi, 0x20000000
test eax, 0x800
je 0x1c85dcf
or esi, 0x10000000
test eax, 0x4400
je 0x1c85ddc
or esi, 0x2000000
cmp byte [esp + 0x6e], 0
je 0x1c85de9
or esi, 0x4000000
and ebp, 0x1ffff
or esi, ebp
xor ebp, ebp
test ebx, ebx
je 0x1c85e5f
cmp ebx, 2
jne 0x1c85e3c
lea ebp, [ebx - 1]
mov edx, dword [esp + 0xa8]
push edx
call fcn.01cae8c0
or edi, 0xffffffff
cmp eax, edi
jne 0x1c85ecf
call dword [0x1da3abc]
cmp eax, 2
jne 0x1c85e67
test byte [esp + 0x21c], 1
je 0x1c85e67
cmp ebx, 3
je 0x1c85e35
cmp ebx, eax
jne 0x1c85e67
mov byte [esp + 0x17], 1
jmp 0x1c85e67
cmp ebx, 1
jne 0x1c85e46
lea ebp, [ebx + 2]
jmp 0x1c85dff
cmp ebx, 3
jne 0x1c85e50
lea ebp, [ebx + 1]
jmp 0x1c85dff
cmp ebx, 4
jne 0x1c85e5a
lea ebp, [ebx + 1]
jmp 0x1c85e64
cmp ebx, 5
jne 0x1c85e64
mov ebp, 2
or edi, 0xffffffff
cmp byte [esp + 0x6c], 0
je 0x1c85f74
cmp ebx, 1
je 0x1c85f6e
cmp ebx, 3
je 0x1c85f6e
cmp ebx, 2
je 0x1c85f6e
mov edx, dword [0x1dba168]
mov eax, dword [edx]
shr eax, 0x15
test al, 1
je 0x1c85eaf
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1c85eaf
push edi
push str.__FILE_DIRECTORY_FILE_
call fcn.01d26f00
mov byte [esp + 0x1fc], 0
lea ecx, [esp + 0xa8]
call fcn.01d26680
mov dword [esp + 0x1fc], edi
jmp 0x1c85d43
and eax, 0x10
je 0x1c85f16
test byte [esp + 0x21c], 0x40
je 0x1c85f16
mov eax, dword [esp + 0x18]
mov dword [eax], 0xc00000ba
mov byte [esp + 0x1fc], 0
lea ecx, [esp + 0xa8]
call fcn.01d26680
mov dword [esp + 0x1fc], edi
lea ecx, [esp + 0x14c]
call fcn.01d26680
mov al, 1
jmp 0x1c85d51
test eax, eax
jne 0x1c85f63
test byte [esp + 0x21c], 1
je 0x1c85f5b
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0xc0000103
mov byte [esp + 0x1fc], al
lea ecx, [esp + 0xa8]
call fcn.01d26680
mov dword [esp + 0x1fc], edi
lea ecx, [esp + 0x14c]
call fcn.01d26680
mov al, 1
jmp 0x1c85d51
test eax, eax
je 0x1c85e67
or esi, 0x2000000
jmp 0x1c85e67
or esi, 0x2000000
cmp byte [esp + 0x6d], 0
je 0x1c85fbf
cmp ebx, 1
je 0x1c85fbf
cmp ebx, 3
je 0x1c85fbf
cmp ebx, 4
je 0x1c85fbf
cmp ebx, 5
je 0x1c85fbf
cmp ebx, 2
je 0x1c85fbf
mov ecx, dword [0x1dba168]
mov edx, dword [ecx]
shr edx, 0x15
test dl, 1
je 0x1c85eaf
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1c85eaf
push edi
push str.__FILE_NON_DIRECTORY_FILE_
jmp 0x1c85eaa
mov eax, dword [0x1dba168]
mov ecx, dword [eax]
shr ecx, 0x15
test cl, 1
je 0x1c85fe1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1c85fe1
push edi
push str._new_CreateFile_
call fcn.01d26f00
xor bl, bl
cmp byte [esp + 0x17], bl
je 0x1c86086
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.01c82c40
add esp, 0x10
test al, al
je 0x1c85eaf
cmp dword [esp + 0x24], 0
jne 0x1c8607f
call dword [0x1da3abc]
push eax
call fcn.01c78210
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
mov byte [esp + 0x1fc], bl
lea ecx, [esp + 0xa8]
call fcn.01d26680
mov dword [esp + 0x1fc], edi
lea ecx, [esp + 0x14c]
call fcn.01d26680
mov al, 1
jmp 0x1c85d51
mov bl, 1
mov ebp, 3
mov eax, dword [esp + 0x218]
mov ecx, dword [esp + 0x208]
push 0
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0xb0]
push 0
push esi
push ebp
push 0
push eax
push ecx
push edx
call fcn.01c84880
test al, al
je 0x1c85eaf
call dword [0x1da3abc]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x1c86127
push 4
push 0x28
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call fcn.01cfed50
mov edi, eax
mov eax, dword [esp + 0x20]
test edi, edi
jge 0x1c86127
push eax
call fcn.01c81e30
mov ecx, dword [esp + 0x18]
mov dword [ecx], edi
mov byte [esp + 0x1fc], 0
lea ecx, [esp + 0xa8]
call fcn.01d26680
mov dword [esp + 0x1fc], 0xffffffff
lea ecx, [esp + 0x14c]
call fcn.01d26680
mov al, 1
jmp 0x1c85d51
cmp byte [esp + 0x6c], 0
mov cl, byte [esp + 0xa0]
je 0x1c86151
cmp eax, 0xffffffff
je 0x1c86151
test cl, 0x10
jne 0x1c86151
push eax
call fcn.01c81e30
mov edx, dword [esp + 0x18]
mov dword [edx], 0xc0000103
jmp 0x1c860f5
mov dl, byte [esp + 0x6d]
test dl, dl
je 0x1c86175
cmp eax, 0xffffffff
je 0x1c8617a
test cl, 0x10
je 0x1c86175
push eax
call fcn.01c81e30
mov eax, dword [esp + 0x18]
mov dword [eax], 0xc00000ba
jmp 0x1c860f5
cmp eax, 0xffffffff
jne 0x1c861d3
test dl, dl
je 0x1c861bf
cmp esi, 3
jne 0x1c861bf
mov ecx, dword [esp + 0xa8]
push 7
push 0x10
push ecx
call fcn.01caf170
add esp, 0xc
test al, al
je 0x1c861aa
mov edx, dword [esp + 0x18]
mov dword [edx], 0xc00000ba
jmp 0x1c860f5
push 3
call fcn.01c78210
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
jmp 0x1c860f5
push esi
call fcn.01c78210
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edx], eax
jmp 0x1c860f5
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 0x1c8620f
cmp ebp, 2
jne 0x1c8620a
sub esi, 0xb7
neg esi
sbb esi, esi
and esi, ebp
mov dword [eax + 4], esi
jmp 0x1c860f5
cmp ebp, 1
jne 0x1c8621b
mov dword [eax + 4], 2
jmp 0x1c860f5
cmp ebp, 4
jne 0x1c86234
xor ecx, ecx
cmp esi, 0xb7
setne cl
inc ecx
mov dword [eax + 4], ecx
jmp 0x1c860f5
cmp ebp, 3
jne 0x1c86245
mov dword [eax + 4], 1
jmp 0x1c860f5
cmp ebp, 5
jne 0x1c860f5
mov dword [eax + 4], 3
jmp 0x1c860f5