Function at 0x100301f
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov ax, word [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor edx, edx
xor ecx, ecx
inc edi
xor esi, esi
cmp ax, di
sete cl
mov dword [ebp - 0x328], edx
mov dword [ebp - 0x194], edx
mov dword [ebp + 0xc], ecx
cmp ecx, edx
je 0x1002d42
or ebx, 0x100000
cmp dword [0x1007284], edx
jne 0x1002f6a
cmp ax, dx
je 0x1002df6
cmp ax, di
je 0x1002df6
cmp ax, 0x11
jne 0x1002f6a
test bl, 1
je 0x1002d87
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x190], 0x1001240
mov dword [ebp - 0x194], edi
mov esi, edi
test bl, 2
je 0x1002dba
mov ecx, dword [ebp - 0x328]
mov eax, 0x1001220
mov dword [ebp + ecx*4 - 0x324], eax
mov ecx, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + ecx*4 - 0x190], eax
inc dword [ebp - 0x194]
or esi, 2
test bl, 4
je 0x1002ded
mov ecx, dword [ebp - 0x328]
mov eax, 0x10011fc
mov dword [ebp + ecx*4 - 0x324], eax
mov ecx, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + ecx*4 - 0x190], eax
inc dword [ebp - 0x194]
or esi, 4
not esi
and ebx, esi
jmp 0x1002f6a
cmp ebx, 0x1f01ff
je 0x1002e06
cmp ebx, 0x10000000
jne 0x1002e2c
cmp ax, dx
mov dword [ebp - 0x328], edi
mov eax, 0x100163c
je 0x1002e1b
mov eax, 0x100168c
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x194], edi
mov dword [ebp + 0xc], edx
xor ebx, ebx
mov ecx, 0x1301bf
mov edx, ebx
and edx, ecx
mov eax, 0x1001638
cmp edx, ecx
jne 0x1002e6a
mov ecx, dword [ebp - 0x328]
mov dword [ebp + ecx*4 - 0x324], eax
mov ecx, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + ecx*4 - 0x190], eax
inc dword [ebp - 0x194]
and ebx, 0xffecfe40
mov edx, 0x1200a9
mov ecx, ebx
and ecx, edx
cmp ecx, edx
jne 0x1002e7e
mov ecx, 0x1001630
jmp 0x1002e90
mov edx, 0x120089
mov ecx, ebx
and ecx, edx
cmp ecx, edx
jne 0x1002eb8
mov ecx, 0x100162c
mov esi, dword [ebp - 0x328]
mov dword [ebp + esi*4 - 0x324], ecx
mov esi, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + esi*4 - 0x190], ecx
inc dword [ebp - 0x194]
mov esi, edx
mov edx, 0x100116
mov ecx, ebx
and ecx, edx
cmp ecx, edx
jne 0x1002ef5
mov edi, dword [ebp - 0x328]
mov ecx, 0x1001628
mov dword [ebp + edi*4 - 0x324], ecx
mov edi, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + edi*4 - 0x190], ecx
inc dword [ebp - 0x194]
xor edi, edi
or esi, edx
inc edi
mov ecx, 0xe0010000
mov edx, ebx
and edx, ecx
cmp edx, ecx
jne 0x1002f2a
mov edx, dword [ebp - 0x328]
mov dword [ebp + edx*4 - 0x324], eax
mov edx, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + edx*4 - 0x190], eax
inc dword [ebp - 0x194]
or esi, ecx
mov ecx, 0x110000
mov eax, ebx
and eax, ecx
cmp eax, ecx
jne 0x1002f64
mov edx, dword [ebp - 0x328]
mov eax, 0x1001624
mov dword [ebp + edx*4 - 0x324], eax
mov edx, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + edx*4 - 0x190], eax
inc dword [ebp - 0x194]
or esi, ecx
not esi
and ebx, esi
xor edx, edx
cmp dword [ebp + 0xc], edx
je 0x1002f86
push edx
push 0x271b
push dword [_amsg_exit]
push edx
call fcn.01001a91
add esp, 0x10
xor edx, edx
cmp ebx, edx
je 0x1002fd6
mov ecx, 0x1007138
mov eax, dword [ecx]
cmp eax, edx
je 0x1002fd6
mov esi, eax
and esi, ebx
cmp esi, eax
jne 0x1002fcf
mov esi, dword [ebp - 0x328]
mov edx, dword [ecx + 4]
mov dword [ebp + esi*4 - 0x324], edx
mov edx, dword [ecx + 8]
mov esi, dword [ebp - 0x194]
inc dword [ebp - 0x328]
mov dword [ebp + esi*4 - 0x190], edx
inc dword [ebp - 0x194]
not eax
and ebx, eax
xor edx, edx
add ecx, 0xc
cmp ebx, edx
jne 0x1002f8f
cmp dword [ebp - 0x194], edx
je 0x1003044
push 0x1001688
push dword [_amsg_exit]
call fcn.010019a4
push dword [ebp - 0x190]
push dword [_amsg_exit]
call fcn.010019a4
cmp dword [ebp - 0x194], edi
mov esi, edi
jle 0x1003034
push 0x1001684
push dword [_amsg_exit]
call fcn.010019a4
push dword [ebp + esi*4 - 0x190]
push dword [_amsg_exit]
call fcn.010019a4
inc esi
cmp esi, dword [ebp - 0x194]
jl 0x1003009
push 0x1001680
push dword [_amsg_exit]
call fcn.010019a4
pop edi
pop esi
pop ebx
leave
ret 0x10