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

Disassembly:
sub esp, 0x538
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x534], eax
mov ecx, dword [str.rename]
mov dx, word [0x44ebf4]
mov eax, dword [esp + 0x53c]
push ebx
push ebp
mov dword [esp + 0x14], ecx
mov cl, byte [0x44ebf6]
mov word [esp + 0x18], dx
mov edx, dword [str.Wininit.ini]
push esi
mov esi, dword [esp + 0x54c]
xor ebx, ebx
mov byte [esp + 0x1e], cl
mov ecx, dword [0x44ebe8]
mov dword [esp + 0x20], edx
mov edx, dword [0x44ebec]
xor ebp, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], 0x4c554e
cmp esi, ebx
jne 0x410fb7
lea esi, [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea ecx, [esp + 0x23c]
push ecx
push eax
mov byte [esp + 0x244], bl
mov byte [esp + 0x44c], bl
call edi
push 0x104
lea edx, [esp + 0x444]
push edx
push esi
call edi
lea eax, [esp + 0x238]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410ff7
sub eax, edx
je 0x41130a
lea eax, [esp + 0x43c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411010
sub eax, edx
je 0x41130a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x440]
push ecx
call fcn.00434e14
add esp, 8
test eax, eax
je 0x411070
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x444]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x534]
xor ecx, esp
call fcn.00432ccc
add esp, 0x538
ret
push 0x103
lea eax, [esp + 0x135]
push ebx
push eax
mov byte [esp + 0x13c], bl
call fcn.004338b0
push 0x103
lea ecx, [esp + 0x349]
push ebx
push ecx
mov byte [esp + 0x350], bl
call fcn.004338b0
push 0x103
lea edx, [esp + 0x49]
push ebx
push edx
mov byte [esp + 0x50], bl
call fcn.004338b0
add esp, 0x24
push 0x104
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x41130a
push 0x44e7a0
lea ecx, [esp + 0x134]
push 0x104
push ecx
call fcn.004346b6
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x140]
push 0x104
push eax
call fcn.004346b6
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x354]
push 0x103
push edx
call fcn.00433fec
push str..tmp
lea eax, [esp + 0x360]
push 0x104
push eax
call fcn.004346b6
push 0x44ebe0
lea ecx, [esp + 0x164]
push ecx
lea edx, [esp + 0x48]
push edx
xor esi, esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
call fcn.00433f99
push 0x44ebdc
lea eax, [esp + 0x378]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00433f99
mov eax, dword [esp + 0x58]
add esp, 0x48
cmp eax, ebx
je 0x41123f
cmp dword [esp + 0xc], ebx
je 0x4112a0
push eax
call fcn.004359ae
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push 0x100
push eax
mov byte [esp + 0x3c], bl
call fcn.00435866
add esp, 0x10
test eax, eax
je 0x41123f
nop
cmp byte [esp + 0x2c], 0x20
lea eax, [esp + 0x2c]
jne 0x4111c6
jmp 0x4111c0
inc eax
cmp byte [eax], 0x20
je 0x4111c0
push 8
push str._rename_
push eax
call fcn.00435808
add esp, 0xc
test eax, eax
jne 0x41120d
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00435607
lea eax, [esp + 0x23c]
push eax
push str.NUL_s_n
lea ecx, [esp + 0x3c]
push 0x104
push ecx
call fcn.00433868
add esp, 0x18
mov esi, 1
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00435607
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push 0x100
push edx
call fcn.00435866
add esp, 0x14
test eax, eax
jne 0x4111b0
cmp esi, ebx
jne 0x4112a0
cmp dword [esp + 0xc], ebx
je 0x4112a0
lea eax, [esp + 0x18]
push eax
push str._n__s__n
lea ecx, [esp + 0x34]
push 0x104
push ecx
call fcn.00433868
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00435607
lea ecx, [esp + 0x24c]
push ecx
push str.NUL_s_n
lea edx, [esp + 0x4c]
push 0x104
push edx
call fcn.00433868
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.00435607
add esp, 0x30
mov esi, 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4112b5
push eax
call fcn.00433e59
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4112ca
push eax
call fcn.00433e59
add esp, 4
mov dword [esp + 0xc], ebx
cmp esi, ebx
je 0x41130a
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x534]
xor ecx, esp
call fcn.00432ccc
add esp, 0x538
ret
mov ecx, dword [esp + 0x540]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00432ccc
add esp, 0x538
ret