Function at 0x401f20
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x894]
sub esp, 0x894
push 0xffffffffffffffff
push 0x418230
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp + 0x890], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x89c]
mov esi, dword [ebp + 0x8a4]
call fcn.00405aa0
call fcn.00405b80
call fcn.00401e20
push esi
push 0x41ee98
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4020c7
push 0x208
push 0
lea eax, [ebp + 0x278]
push eax
call fcn.00408160
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x5ee
mov dword [ebp - 4], 0xffffffff
push 0x208
push 0
lea eax, [ebp + 0x480]
push eax
call fcn.00408160
push 0x208
push 0
lea eax, [ebp + 0x688]
push eax
call fcn.00408160
add esp, 0x18
push 0x104
lea eax, [ebp + 0x278]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x480]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x688]
push eax
push 0
push 0x41eea0
lea eax, [ebp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edx, str..exe
lea ecx, [ebp + 0x688]
call fcn.00405cf0
push ecx
lea edx, [ebp + 0x688]
lea ecx, [ebp + 0x278]
call fcn.00401c60
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp + 0x30], xmm0
movlpd qword [ebp + 0x38], xmm0
movlpd qword [ebp + 0x40], xmm0
movlpd qword [ebp + 0x48], xmm0
movlpd qword [ebp + 0x50], xmm0
movlpd qword [ebp + 0x58], xmm0
movlpd qword [ebp + 0x60], xmm0
movlpd qword [ebp + 0x68], xmm0
mov dword [ebp + 0x2c], 0x44
mov edx, 0x41eeb4
lea ecx, [ebp + 0x688]
call fcn.00405cf0
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x2c]
push eax
sub esp, 0x18
lea edx, [ebp + 0x688]
call fcn.00401bb0
add esp, 0x20
xor eax, eax
jmp 0x40218f
push 0x64
push 0x4235b0
push 0x68
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4234e8
push 0x6e
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, edi
call fcn.004021c0
mov edx, dword [ebp + 0x8a8]
mov ecx, edi
call fcn.00402290
test eax, eax
je 0x4020ba
push 0x6e
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, eax
push 0
push 0
push 0
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40215a
nop
lea eax, [ebp]
push eax
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402146
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x402120
push 0x208
push 0
lea eax, [ebp + 0x70]
push eax
call fcn.00408160
add esp, 0xc
push 0x104
lea eax, [ebp + 0x70]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x890]
xor ecx, ebp
call fcn.004070fd
lea esp, [ebp + 0x894]
pop ebp
ret 0x10