Function at 0x10005be0
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 [0x1002a998]
mov dword [ebp - 4], 0
test al, 1
jne 0x10005c25
or eax, 1
mov dword [0x1002a998], eax
mov dword [0x1002a994], 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 0x10005d06
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 0x10005c74
mov eax, dword [edx]
jmp 0x10005c76
mov eax, edx
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x10005c82
xor ecx, ecx
jmp 0x10005c9a
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 0x10005c90
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 0x10005ced
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x10005cc8
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 0x10005ce0
mov eax, dword [esi]
jmp 0x10005ce2
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 0x10005d06
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 0x10005e7d
cmp dword [edi + 0x8c], 0
sete al
test al, al
sete al
test al, al
je 0x10005db7
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x10005d49
mov eax, dword [ecx]
jmp 0x10005d4b
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 0x10005d9e
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x10005d79
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 0x10005d91
mov eax, dword [esi]
jmp 0x10005d93
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 0x10005db7
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10005a80
cmp dword [esi + 0x10], 0
je 0x10005e7d
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x10005dcd
mov ecx, dword [esi]
jmp 0x10005dcf
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x5c
je 0x10005e29
cmp al, 0x2f
je 0x10005e29
cmp al, 0x41
jl 0x10005de1
cmp al, 0x5a
jle 0x10005de7
sub al, 0x61
cmp al, 0x19
ja 0x10005df8
cmp byte [ecx + 1], 0x3a
jne 0x10005df8
mov al, byte [ecx + 2]
cmp al, 0x5c
je 0x10005e29
cmp al, 0x2f
je 0x10005e29
cmp edx, 0x10
jb 0x10005e01
mov eax, dword [esi]
jmp 0x10005e03
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 0x10005e4e
cmp edx, 0x10
jb 0x10005e32
mov ecx, dword [esi]
jmp 0x10005e34
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 0x10005e40
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [ebp + 0x30]
cmp eax, 0xffffffff
je 0x10005e80
lea eax, [ebp - 0x130]
mov dword [edx], eax
cmp dword [esi + 0x14], 0x10
jb 0x10005e78
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jmp 0x10005e80
mov dword [ebp - 0x14], esi
jmp 0x10005e80
mov edx, dword [ebp + 0x30]
mov eax, dword [edi + 0x90]
test eax, eax
je 0x10005eb7
cmp byte [eax + 0x10], 0
jne 0x10005eb7
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 0x10005ed0
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 0x10005ef7
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