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

Disassembly:
push 0xffffffffffffffff
push 0x4a45f6
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x45c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x46c]
mov ebx, ecx
lea edi, [ebx + 4]
mov dword [esp + 0x1c], edi
call fcn.004629e0
mov esi, eax
test esi, esi
jne 0x47b1b0
mov eax, 0x80004005
jmp 0x47b4a0
mov eax, dword [edi]
test eax, eax
je 0x47b1be
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 0x47b4a0
lea edi, [ebx + 8]
cmp edi, ebp
je 0x47b1f4
call fcn.0047c080
mov eax, dword [ebp]
mov dword [edi], eax
test eax, eax
je 0x47b1f4
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 0x47b20d
push 0x80004003
call fcn.0048afe0
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0x4c]
call eax
mov eax, dword [ebx]
cmp eax, esi
jne 0x47b227
push 0x80004003
call fcn.0048afe0
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 0x47b23f
mov eax, dword [eax]
jmp 0x47b241
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47b2b9
mov ecx, ebp
lea edi, [esp + 0x34]
call fcn.0047b100
mov dword [esp + 0x464], 1
mov edx, dword [ebx]
cmp edx, esi
jne 0x47b272
push 0x80004003
call fcn.0048afe0
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 + 0x468], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x47b46f
mov dword [esp + 0x18], 0x80004005
call fcn.004629e0
cmp eax, esi
je 0x47b46f
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push eax
call edx
mov esi, eax
test esi, esi
je 0x47b46f
mov eax, dword [ebp]
test eax, eax
je 0x47b2eb
mov eax, dword [eax]
jmp 0x47b2ed
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 0x47b46f
push edi
call fcn.0048ccaf
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47b46b
push edi
push 0
push ebx
call fcn.0048dc10
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x47b32c
mov eax, dword [eax]
jmp 0x47b32e
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.0048dc10
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.0048dc10
mov eax, dword [0x4ce410]
mov ecx, eax
inc eax
add esp, 0xc
mov dword [0x4ce410], eax
lea eax, [esp + 0x44]
push eax
push ecx
push 0x4ba4e8
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x44]
push 0x4ba4f0
push edx
call fcn.0048d4ce
mov esi, eax
add esp, 8
test esi, esi
je 0x47b462
push esi
push 1
push edi
push ebx
call fcn.0048d386
push esi
call fcn.0048d1a8
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 0x47b3f5
push 0x8007000e
call fcn.0048afe0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x464], 2
mov edx, dword [edx]
test edx, edx
jne 0x47b414
push 0x80004003
call fcn.0048afe0
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 + 0x468], 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.0048b193
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp word [esp + 0x20], 0
jne 0x47b481
mov dword [esp + 0x18], 0x80004005
jmp 0x47b488
cmp dword [esp + 0x18], 0
jge 0x47b49c
mov eax, dword [ebx]
test eax, eax
je 0x47b49c
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 + 0x45c]
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.0048b133
add esp, 0x454
ret 4