Function at 0x10005f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ecb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x1002a9a8]
mov dword [ebp - 4], 0
test al, 1
jne 0x10005f55
or eax, 1
mov dword [0x1002a9a8], eax
mov dword [0x1002a9a4], 0x10020170
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x10]
mov dword [ebp - 0x14], 0
lea esi, [edi + 0x28]
push eax
mov ecx, esi
call fcn.100051b0
cmp dword [edi + 0x64], 0
sete al
test al, al
sete al
test al, al
je 0x10006036
mov ebx, dword [ebp + 0x30]
sub esp, 0x18
mov edx, esp
mov ebx, dword [ebx]
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10005fa4
mov eax, dword [edx]
jmp 0x10005fa6
mov eax, edx
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x10005fb2
xor ecx, ecx
jmp 0x10005fca
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005fc0
sub ecx, dword [ebp - 0x10]
push ecx
push ebx
mov ecx, edx
call fcn.100052e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x40]
call fcn.10003870
mov ebx, eax
cmp esi, ebx
je 0x1000601d
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x10005ff8
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10005a80
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x10006010
mov eax, dword [esi]
jmp 0x10006012
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.10004670
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x10006036
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10005a80
cmp dword [esi + 0x10], 0
sete al
test al, al
jne 0x100061ad
cmp dword [edi + 0x8c], 0
sete al
test al, al
sete al
test al, al
je 0x100060e7
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x10006079
mov eax, dword [ecx]
jmp 0x1000607b
mov eax, ecx
push esi
mov byte [eax], 0
call fcn.10004670
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x68]
call fcn.10003870
mov ebx, eax
cmp esi, ebx
je 0x100060ce
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x100060a9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10005a80
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x100060c1
mov eax, dword [esi]
jmp 0x100060c3
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.10004670
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x100060e7
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10005a80
cmp dword [esi + 0x10], 0
je 0x100061ad
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x100060fd
mov ecx, dword [esi]
jmp 0x100060ff
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x5c
je 0x10006159
cmp al, 0x2f
je 0x10006159
cmp al, 0x41
jl 0x10006111
cmp al, 0x5a
jle 0x10006117
sub al, 0x61
cmp al, 0x19
ja 0x10006128
cmp byte [ecx + 1], 0x3a
jne 0x10006128
mov al, byte [ecx + 2]
cmp al, 0x5c
je 0x10006159
cmp al, 0x2f
je 0x10006159
cmp edx, 0x10
jb 0x10006131
mov eax, dword [esi]
jmp 0x10006133
mov eax, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [section..data]
mov eax, dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.10002290
add esp, 0x10
jmp 0x1000617e
cmp edx, 0x10
jb 0x10006162
mov ecx, dword [esi]
jmp 0x10006164
mov ecx, esi
lea edx, [ebp - 0x130]
lea ebx, [ebx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x10006170
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [ebp + 0x30]
cmp eax, 0xffffffff
je 0x100061b0
lea eax, [ebp - 0x130]
mov dword [edx], eax
cmp dword [esi + 0x14], 0x10
jb 0x100061a8
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jmp 0x100061b0
mov dword [ebp - 0x14], esi
jmp 0x100061b0
mov edx, dword [ebp + 0x30]
mov eax, dword [edi + 0x90]
test eax, eax
je 0x100061e7
cmp byte [eax + 0x10], 0
jne 0x100061e7
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [eax + 0x10], 1
mov eax, dword [edi + 0x90]
mov dword [eax + 0x14], ecx
setne cl
mov eax, dword [edi + 0x90]
mov byte [eax + 0x11], cl
mov eax, dword [edi + 0x90]
mov byte [eax + 0x12], cl
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [ebp + 0x30], eax
mov eax, dword [edx]
mov dword [ebp + 0x34], eax
test ecx, ecx
jne 0x10006200
call fcn.1000ea3c
mov eax, dword [ecx]
lea edx, [ebp + 0x30]
push edx
lea edx, [ebp + 0x34]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x2c]
mov edi, eax
test ecx, ecx
je 0x10006227
mov esi, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x30