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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7ca4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 0x9c]
cmp dword [ecx + 4], 1
jne 0x481a02
mov al, 1
jmp 0x481cd7
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x481cd5
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 4], 2
jne 0x481a28
xor al, al
jmp 0x481cd7
mov ecx, dword [ebp - 0x9c]
cmp dword [ecx + 4], 3
jne 0x481ab2
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x9c]
call fcn.00481ce7
and eax, 0xff
test eax, eax
jne 0x481aa5
lea ecx, [ebp - 0x78]
call fcn.00404dc0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
push 0xef8b
lea eax, [ebp - 0x78]
push eax
call fcn.004cc939
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x78]
call fcn.00447470
push eax
call fcn.004df32b
mov byte [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.004d37cb
mov al, byte [ebp - 0x80]
jmp 0x481cd7
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
mov al, 1
jmp 0x481cd7
lea ecx, [ebp - 0x10]
call fcn.00404dc0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
push 0xef14
lea eax, [ebp - 0x10]
push eax
call fcn.004cc939
add esp, 0xc
push 0
lea ecx, [ebp - 0x74]
call fcn.00448e60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004d3904
lea ecx, [ebp - 0x74]
call fcn.004d4cec
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x481b2e
mov byte [ebp - 0x84], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00448f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d37cb
mov al, byte [ebp - 0x84]
jmp 0x481cd7
cmp dword [ebp - 0x14], 2
jne 0x481b61
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00448f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d37cb
mov al, byte [ebp - 0x88]
jmp 0x481cd7
cmp dword [ebp - 0x14], 0x432
jne 0x481ba4
mov edx, dword [ebp - 0x9c]
mov dword [edx + 4], 1
mov byte [ebp - 0x8c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00448f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d37cb
mov al, byte [ebp - 0x8c]
jmp 0x481cd7
cmp dword [ebp - 0x14], 0x3ed
jne 0x481be7
mov eax, dword [ebp - 0x9c]
mov dword [eax + 4], 2
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00448f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d37cb
mov al, byte [ebp - 0x90]
jmp 0x481cd7
cmp dword [ebp - 0x14], 0x431
jne 0x481cba
mov ecx, dword [ebp - 0x9c]
mov dword [ecx + 4], 3
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x9c]
call fcn.00481ce7
and eax, 0xff
test eax, eax
jne 0x481c8a
lea ecx, [ebp - 0x7c]
call fcn.00404dc0
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
push edx
push 0xef8b
lea eax, [ebp - 0x7c]
push eax
call fcn.004cc939
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x7c]
call fcn.00447470
push eax
call fcn.004df32b
mov byte [ebp - 0x94], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.004d37cb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00448f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d37cb
mov al, byte [ebp - 0x94]
jmp 0x481cd7
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
mov byte [ebp - 0x98], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00448f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d37cb
mov al, byte [ebp - 0x98]
jmp 0x481cd7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00448f90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d37cb
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10