Function at 0x409b23
Capabilities:
Check if file exists
Create process on windows
Delete file
Move file

Disassembly:
push ebp
sub esp, 0x820
lea ebp, [esp - 4]
mov eax, dword [0x489190]
xor eax, ebp
mov dword [ebp + 0x820], eax
push 0x80
mov eax, 0x4657eb
call fcn.00445fa2
mov eax, dword [ebp + 0x82c]
mov dword [ebp - 0x14], eax
call fcn.004099e3
mov ebx, 0x206
xor esi, esi
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x412]
push esi
push eax
mov word [ebp + 0x410], si
call fcn.004456a0
push ebx
lea eax, [ebp + 0x61a]
push esi
push eax
mov word [ebp + 0x618], si
call fcn.004456a0
push ebx
lea eax, [ebp + 0x20a]
push esi
push eax
mov word [ebp + 0x208], si
call fcn.004456a0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0x24
push 0x104
lea eax, [ebp + 0x410]
push eax
push esi
call edi
push 0x104
lea eax, [ebp + 0x618]
push eax
push esi
call edi
push 0x104
lea eax, [ebp + 0x208]
push eax
push esi
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push str..upd
lea eax, [ebp + 0x618]
push eax
call edi
push str..bak
lea eax, [ebp + 0x208]
push eax
call edi
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409c17
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x10]
cmp dword [edi], 0x43a
jg 0x409c29
xor eax, eax
jmp 0x409d8e
mov eax, dword [edi + 4]
lea ecx, [ebp + 0x618]
push ecx
push eax
call fcn.0040331e
cmp eax, esi
pop ecx
pop ecx
je 0x409d8e
mov edi, dword [edi + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x618]
push eax
mov dword [ebp - 0x10], esi
call fcn.004017d5
cmp edi, dword [ebp - 0x10]
pop ecx
pop ecx
je 0x409c6f
lea eax, [ebp + 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x409c22
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp + 0x410]
push eax
call edi
cmp eax, esi
je 0x409d8e
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x618]
push eax
call edi
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x409d8e
push 0x40
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.004456a0
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp + 2]
push esi
push eax
mov dword [ebp - 0x8c], 0x44
mov word [ebp - 0x5c], si
mov word [ebp], si
call fcn.004456a0
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
add esp, 0x18
push dword [ebp - 0x14]
call ebx
test eax, eax
mov edi, 0x46d1ac
jne 0x409cfb
mov edi, 0x46d1a4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp]
push str._s_s__u__u
push eax
call fcn.00402295
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x8c]
push eax
push esi
push esi
push 0x4000
push 1
push esi
push esi
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x409d7e
lea ecx, [ebp - 0x48]
call fcn.0040440d
mov dword [ebp - 4], esi
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00406e09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404618
push esi
push esi
push 0x11
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x820]
xor ecx, ebp
call fcn.00445f93
add ebp, 0x824
leave
ret 4