Function at 0x4b3cd0
Capabilities:
Check if file exists
Delete file
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x509586
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x468]
mov ebp, dword [esp + 0x46c]
lea edi, [ebx + 4]
mov dword [esp + 0x1c], edi
call fcn.0041d3e0
mov esi, eax
test esi, esi
jne 0x4b3d35
mov eax, 0x80004005
jmp 0x4b4025
mov eax, dword [edi]
test eax, eax
je 0x4b3d43
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x78]
push edi
push esi
call ecx
test eax, eax
jl 0x4b4025
lea edi, [ebx + 8]
cmp edi, ebp
je 0x4b3d79
call fcn.00428ee0
mov eax, dword [ebp]
mov dword [edi], eax
test eax, eax
je 0x4b3d79
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor esi, esi
mov dword [ebx + 0x10], esi
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
cmp eax, esi
jne 0x4b3d92
push 0x80004003
call fcn.004e3da0
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0x4c]
call eax
mov eax, dword [ebx]
cmp eax, esi
jne 0x4b3dac
push 0x80004003
call fcn.004e3da0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp]
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x4b3dc4
mov eax, dword [eax]
jmp 0x4b3dc6
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b3e3e
mov ecx, ebp
lea edi, [esp + 0x34]
call fcn.00428f30
mov dword [esp + 0x460], 1
mov edx, dword [ebx]
cmp edx, esi
jne 0x4b3df7
push 0x80004003
call fcn.004e3da0
mov edi, dword [eax]
mov esi, dword [edx]
lea ecx, [esp + 0x20]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x30]
push edx
call ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x464], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4b3ff4
mov dword [esp + 0x18], 0x80004005
call fcn.0041d3e0
cmp eax, esi
je 0x4b3ff4
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push eax
call edx
mov esi, eax
test esi, esi
je 0x4b3ff4
mov eax, dword [ebp]
test eax, eax
je 0x4b3e70
mov eax, dword [eax]
jmp 0x4b3e72
xor eax, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push eax
push 0
push esi
call edx
mov edi, eax
test edi, edi
jle 0x4b3ff4
push edi
call fcn.004e519e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b3ff0
push edi
push 0
push ebx
call fcn.004e8fe0
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x4b3eb1
mov eax, dword [eax]
jmp 0x4b3eb3
xor eax, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
push edi
push ebx
push eax
push 0
push esi
call edx
push 0x208
lea eax, [esp + 0x250]
push 0
push eax
call fcn.004e8fe0
add esp, 0xc
lea ecx, [esp + 0x24c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea edx, [esp + 0x48]
push 0
push edx
call fcn.004e8fe0
mov eax, dword [0x5624c8]
mov ecx, eax
inc eax
add esp, 0xc
mov dword [0x5624c8], eax
lea eax, [esp + 0x44]
push eax
push ecx
push 0x519050
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x44]
push 0x519058
push edx
call fcn.004e701a
mov esi, eax
add esp, 8
test esi, esi
je 0x4b3fe7
push esi
push 1
push edi
push ebx
call fcn.004e6ed2
push esi
call fcn.004e673c
add esp, 0x14
lea ecx, [esp + 0x44]
mov eax, 8
push ecx
mov word [esp + 0x28], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4b3f7a
push 0x8007000e
call fcn.004e3da0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x460], 2
mov edx, dword [edx]
test edx, edx
jne 0x4b3f99
push 0x80004003
call fcn.004e3da0
mov edi, dword [esp + 0x24]
mov esi, dword [edx]
lea ecx, [esp + 0x20]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [esp + 0x3c]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x30]
push edx
call ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x464], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.004e4b2f
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp word [esp + 0x20], 0
jne 0x4b4006
mov dword [esp + 0x18], 0x80004005
jmp 0x4b400d
cmp dword [esp + 0x18], 0
jge 0x4b4021
mov eax, dword [ebx]
test eax, eax
je 0x4b4021
mov dword [ebx], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.004e3edb
add esp, 0x450
ret 8