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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4637b1
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x47e4f0]
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 edi, ecx
lea ebx, [edi + 4]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], ebx
call fcn.0041a840
mov esi, eax
test esi, esi
jne 0x428e37
mov eax, 0x80004005
jmp 0x42918b
mov eax, dword [ebx]
test eax, eax
je 0x428e45
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 0x42918b
lea esi, [edi + 8]
cmp esi, dword [ebp - 0x42c]
je 0x428e86
mov ecx, esi
call fcn.00427f30
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx]
mov dword [esi], eax
test eax, eax
je 0x428e86
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x10], esi
mov eax, dword [ebx]
test eax, eax
jne 0x428e9c
push 0x80004003
call fcn.004432e0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [ebx]
test eax, eax
jne 0x428eb6
push 0x80004003
call fcn.004432e0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push 0
push eax
call edx
test esi, esi
je 0x428f02
push str.version1.0_encodingutf_8
lea ecx, [ebp - 0x424]
call fcn.00426f00
lea eax, [ebp - 0x424]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00428c90
lea ecx, [ebp - 0x424]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00427f30
jmp 0x429171
mov edi, dword [ebp - 0x42c]
mov eax, dword [edi]
mov dword [ebp - 0x430], 0
test eax, eax
je 0x428f1c
mov eax, dword [eax]
jmp 0x428f1e
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428f95
push edi
lea ecx, [ebp - 0x440]
call fcn.00426fb0
mov edx, dword [ebx]
mov dword [ebp - 4], 1
test edx, edx
jne 0x428f4c
push 0x80004003
call fcn.004432e0
mov edi, dword [eax]
mov esi, dword [edx]
lea ecx, [ebp - 0x430]
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, [ebp - 0x440]
push edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x42914f
mov dword [ebp - 0x428], 0x80004005
call fcn.0041a840
test eax, eax
je 0x42914f
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push eax
call edx
mov esi, eax
test esi, esi
je 0x42914f
mov eax, dword [edi]
test eax, eax
je 0x428fc8
mov eax, dword [eax]
jmp 0x428fca
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 0x42914f
push edi
call fcn.004488b5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x429149
push edi
push 0
push ebx
call fcn.00446080
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x42900e
mov eax, dword [eax]
jmp 0x429010
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, [ebp - 0x420]
push 0
push eax
call fcn.00446080
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.00446080
mov eax, dword [0x47cf2c]
mov ecx, eax
inc eax
add esp, 0xc
mov dword [0x47cf2c], eax
lea eax, [ebp - 0x218]
push eax
push ecx
push 0x46ad58
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x218]
push 0x46ad50
push edx
call fcn.00449fbb
mov esi, eax
add esp, 8
test esi, esi
je 0x429140
push esi
push 1
push edi
push ebx
call fcn.0044b553
push esi
call fcn.00449bbc
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.00426ba0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x438], ecx
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 4], 2
mov dword [ebp - 0x434], edx
call fcn.00426d70
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
lea ecx, [ebp - 0x430]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [ebp - 0x438]
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
mov esi, dword [ebp - 0x434]
push eax
mov dword [ecx + 0xc], esi
call edx
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.004465ab
add esp, 4
mov ebx, dword [ebp - 0x424]
cmp word [ebp - 0x430], 0
jne 0x42916b
mov dword [ebp - 0x428], 0x80004005
mov esi, dword [ebp - 0x428]
jmp 0x429175
mov esi, dword [ebp - 0x428]
test esi, esi
jge 0x429189
mov eax, dword [ebx]
test eax, eax
je 0x429189
mov dword [ebx], 0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
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.00445a92
mov esp, ebp
pop ebp
ret 8