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

Disassembly:
push 0xffffffffffffffff
push 0x473331
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x454]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x464]
mov edi, ecx
lea ebx, [edi + 4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
call fcn.0041acc0
mov esi, eax
test esi, esi
jne 0x41f944
mov eax, 0x80004005
jmp 0x41fa21
mov eax, dword [ebx]
test eax, eax
je 0x41f952
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x78]
push ebx
push esi
call ecx
test eax, eax
jl 0x41fa21
lea esi, [edi + 8]
cmp esi, ebp
je 0x41f98a
mov ecx, esi
call fcn.0041e5a0
mov eax, dword [ebp]
mov dword [esi], eax
test eax, eax
je 0x41f98a
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x468]
mov dword [edi + 0x10], esi
mov eax, dword [ebx]
test eax, eax
jne 0x41f9a4
push 0x80004003
call fcn.00446320
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0x4c]
call eax
mov eax, dword [ebx]
test eax, eax
jne 0x41f9be
push 0x80004003
call fcn.00446320
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push 0
push eax
call edx
test esi, esi
je 0x41fa4b
push str.version1.0_encodingutf_8
lea ecx, [esp + 0x18]
call fcn.0041d310
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x460], 0
call fcn.0041f7a0
lea ecx, [esp + 0x14]
mov ebp, eax
mov dword [esp + 0x45c], 0xffffffff
call fcn.0041f5b0
test ebp, ebp
jge 0x41fa1f
mov eax, dword [ebx]
test eax, eax
je 0x41fa1f
mov dword [ebx], 0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.00447157
add esp, 0x44c
ret 8
mov eax, dword [ebp]
mov dword [esp + 0x18], 0
test eax, eax
je 0x41fa5e
mov eax, dword [eax]
jmp 0x41fa60
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41fad5
push ebp
lea ecx, [esp + 0x24]
call fcn.0041d450
mov edx, dword [ebx]
mov dword [esp + 0x45c], 1
test edx, edx
jne 0x41fa90
push 0x80004003
call fcn.00446320
mov edi, dword [eax]
mov esi, dword [edx]
lea ecx, [esp + 0x18]
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 + 0x20]
push edx
mov ebp, eax
mov dword [esp + 0x460], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x41fc6f
mov ebp, 0x80004005
call fcn.0041acc0
test eax, eax
je 0x41fc6f
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push eax
call edx
mov esi, eax
test esi, esi
je 0x41fc6f
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x41fb07
mov eax, dword [eax]
jmp 0x41fb09
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 0x41fc6f
push edi
call fcn.00447eec
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41fc6b
push edi
push 0
push ebx
call fcn.004471a0
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x41fb4b
mov eax, dword [eax]
jmp 0x41fb4d
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 + 0x24c]
push 0
push eax
call fcn.004471a0
add esp, 0xc
lea ecx, [esp + 0x248]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea edx, [esp + 0x44]
push 0
push edx
call fcn.004471a0
mov eax, dword [0x489c3c]
mov ecx, eax
inc eax
add esp, 0xc
mov dword [0x489c3c], eax
lea eax, [esp + 0x40]
push eax
push ecx
push 0x4782c8
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x40]
push 0x4782c0
push edx
call fcn.0044996c
mov esi, eax
add esp, 8
test esi, esi
je 0x41fc62
push esi
push 1
push edi
push ebx
call fcn.00449824
push esi
call fcn.00449646
add esp, 0x14
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call fcn.0041c970
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x45c], 2
call fcn.0041cb40
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [esp + 0x40]
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
push eax
mov dword [ecx + 0xc], esi
call edx
mov ebp, eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x460], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00447835
add esp, 4
mov ebx, dword [esp + 0x14]
cmp word [esp + 0x18], 0
jne 0x41fa07
mov ebp, 0x80004005
jmp 0x41fa0b