Function at 0x4c4b30
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fe51
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x551644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x5515b0]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x128], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], 0
test esi, esi
je 0x4c4bbb
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4ba0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x118]
call fcn.004048b0
jmp 0x4c4d0d
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
lea eax, [ebp - 0x114]
jne 0x4c4c01
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4be0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x118]
call fcn.004048b0
jmp 0x4c4d0d
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4c4c70
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.0040e5a0
mov edx, dword [ebp - 0x11c]
push 0x5c
push edx
mov byte [ebp - 4], 1
call fcn.004f5cca
mov ecx, dword [ebp - 0x11c]
add esp, 8
test eax, eax
jne 0x4c4c49
or eax, 0xffffffff
jmp 0x4c4c4b
sub eax, ecx
cmp eax, dword [ecx - 0xc]
jl 0x4c4c9e
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4c70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4c4ee6
push eax
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.00406e20
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00408c20
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c4ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4d0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x118]
mov ebx, dword [edi - 0xc]
lea eax, [ebx - 1]
test eax, eax
js 0x4c4d2e
cmp eax, ebx
jg 0x4c4d2e
cmp byte [eax + edi], 0x5c
je 0x4c4d6b
lea esi, [ebx + 1]
test esi, esi
jns 0x4c4d38
push 0x80070057
call fcn.00401000
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4c4d5b
push esi
lea ecx, [ebp - 0x118]
call fcn.00401a60
mov edi, dword [ebp - 0x118]
mov byte [ebx + edi], 0x5c
cmp esi, dword [edi - 8]
jg 0x4c4d2e
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c4dac
push edi
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
test eax, eax
jne 0x4c4dac
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4da5
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
jmp 0x4c4ee6
mov ebx, dword [ebp - 0x120]
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
lea esi, [ebx + 4]
je 0x4c4dc5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x517abc
mov ecx, esi
call fcn.004048b0
push 0
lea ecx, [ebx + 8]
push 0x517abc
mov dword [ebp - 0x120], ecx
call fcn.004048b0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov ebx, 0x105
sub eax, ebx
or eax, ecx
jge 0x4c4e08
push ebx
mov ecx, esi
call fcn.00401a60
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x4c4e19
push 0x80070057
call fcn.00401000
mov edx, dword [ebp - 0x128]
push eax
push 0
mov dword [eax - 0xc], ebx
mov ecx, dword [esi]
push edx
push edi
mov byte [ecx + 0x105], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4c4e51
push ecx
push eax
call fcn.004f4a27
add esp, 8
test eax, eax
js 0x4c4d2e
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4c4d2e
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4c4eb6
push 0x5c
push eax
call fcn.004f5cca
add esp, 8
test eax, eax
jne 0x4c4e81
or eax, 0xffffffff
jmp 0x4c4e83
sub eax, dword [esi]
mov ecx, dword [esi]
inc eax
cmp eax, dword [ecx - 0xc]
jge 0x4c4eb6
lea edx, [ecx + eax]
test edx, edx
jne 0x4c4e96
xor eax, eax
jmp 0x4c4ea9
mov eax, edx
lea ebx, [eax + 1]
jmp 0x4c4ea0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4ea0
sub eax, ebx
mov ecx, dword [ebp - 0x120]
push eax
push edx
call fcn.004048b0
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
neg eax
sbb eax, eax
and esi, eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c4ee4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret 8