Function at 0x53a044
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb34
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c8], ecx
mov dword [ebp - 0x4cc], ecx
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4c0], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x53a413
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x564a04]
cmp dword [eax], 2
je 0x53a3b3
push 0x104
lea eax, [ebp - 0x4b9]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x4c0]
lea eax, [ebp - 0x4b9]
call fcn.0040db40
mov edx, dword [ebp - 0x4c0]
lea eax, [ebp - 4]
mov ecx, 0x53a42c
call fcn.00405580
mov byte [ebp - 9], 0
mov byte [ebp - 0xa], 0
xor eax, eax
push ebp
push 0x53a36f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x53a35e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00539db0
test al, al
je 0x53a164
lea eax, [ebp - 0x4c4]
lea edx, [ebp - 0x4b9]
mov ecx, 0x105
call fcn.004054e4
mov eax, dword [ebp - 0x4c4]
lea ecx, [ebp - 8]
mov edx, 0x53a444
call fcn.00539eb0
mov eax, dword [ebp - 4]
call fcn.00405734
push eax
push 0
push 0
push 0
call sub.kernel32.dll_WritePrivateProfileStringA
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1e8]
call fcn.00403794
mov eax, dword [0x564804]
mov byte [eax], 0x20
lea eax, [ebp - 0x1e8]
call fcn.00403524
call fcn.004030c0
mov byte [ebp - 9], 1
jmp 0x53a16f
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004052fc
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x3b4]
call fcn.00403794
mov eax, dword [0x564804]
mov byte [eax], 0x11
lea eax, [ebp - 0x3b4]
call fcn.00403530
call fcn.004030c0
mov byte [ebp - 0xa], 1
mov byte [ebp - 0x15], 0
xor ebx, ebx
cmp byte [ebp - 9], 0
je 0x53a233
jmp 0x53a21b
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1e8]
call fcn.00403ba8
lea eax, [ebp - 0x1e8]
call fcn.00403c14
call fcn.004030c0
mov bl, 1
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040cc74
cmp dword [ebp - 0x14], 0
je 0x53a201
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x5b
jne 0x53a201
mov edx, 0x53a454
mov eax, dword [ebp - 0x10]
call fcn.0040c8e4
test eax, eax
jne 0x53a1fb
mov byte [ebp - 0x15], 1
jmp 0x53a201
cmp byte [ebp - 0x15], 0
jne 0x53a233
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
xor ebx, ebx
lea eax, [ebp - 0x1e8]
call fcn.00403a00
call fcn.004030c0
test al, al
je 0x53a1ab
cmp byte [ebp - 0x15], 0
jne 0x53a253
mov edx, 0x53a454
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
test esi, esi
je 0x53a263
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00539ff0
jmp 0x53a270
lea eax, [ebp - 0x14]
mov edx, 0x53a468
call fcn.004052fc
push dword [ebp - 0x14]
push 0x53a474
lea edx, [ebp - 0x4cc]
mov eax, edi
call fcn.00539ff0
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x4c8]
mov edx, 3
call fcn.004055f4
mov edx, dword [ebp - 0x4c8]
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
cmp byte [ebp - 9], 0
je 0x53a324
test bl, bl
je 0x53a310
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
jmp 0x53a310
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1e8]
call fcn.00403ba8
lea eax, [ebp - 0x1e8]
call fcn.00403c14
call fcn.004030c0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
lea eax, [ebp - 0x1e8]
call fcn.00403a00
call fcn.004030c0
test al, al
je 0x53a2da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a365
cmp byte [ebp - 0xa], 0
je 0x53a347
lea eax, [ebp - 0x3b4]
call fcn.0040385c
call fcn.004030c0
cmp byte [ebp - 9], 0
je 0x53a35d
lea eax, [ebp - 0x1e8]
call fcn.0040385c
call fcn.004030c0
ret
test esi, esi
je 0x53a3c3
mov eax, esi
call fcn.00405734
mov dword [ebp - 0x1c], eax
jmp 0x53a3c8
xor eax, eax
mov dword [ebp - 0x1c], eax
push 5
mov eax, dword [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00405734
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a41a
lea eax, [ebp - 0x4cc]
mov edx, 4
call fcn.00405288
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405288
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405288
ret