Function at 0x53a248
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 0x53a617
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x564a04]
cmp dword [eax], 2
je 0x53a5b7
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, 0x53a630
call fcn.00405580
mov byte [ebp - 9], 0
mov byte [ebp - 0xa], 0
xor eax, eax
push ebp
push 0x53a573
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x53a562
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00539fb4
test al, al
je 0x53a368
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, 0x53a648
call fcn.0053a0b4
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 0x53a373
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 0x53a437
jmp 0x53a41f
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 0x53a405
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x5b
jne 0x53a405
mov edx, 0x53a658
mov eax, dword [ebp - 0x10]
call fcn.0040c8e4
test eax, eax
jne 0x53a3ff
mov byte [ebp - 0x15], 1
jmp 0x53a405
cmp byte [ebp - 0x15], 0
jne 0x53a437
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 0x53a3af
cmp byte [ebp - 0x15], 0
jne 0x53a457
mov edx, 0x53a658
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
test esi, esi
je 0x53a467
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.0053a1f4
jmp 0x53a474
lea eax, [ebp - 0x14]
mov edx, 0x53a66c
call fcn.004052fc
push dword [ebp - 0x14]
push 0x53a678
lea edx, [ebp - 0x4cc]
mov eax, edi
call fcn.0053a1f4
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 0x53a528
test bl, bl
je 0x53a514
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
jmp 0x53a514
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 0x53a4de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a569
cmp byte [ebp - 0xa], 0
je 0x53a54b
lea eax, [ebp - 0x3b4]
call fcn.0040385c
call fcn.004030c0
cmp byte [ebp - 9], 0
je 0x53a561
lea eax, [ebp - 0x1e8]
call fcn.0040385c
call fcn.004030c0
ret
test esi, esi
je 0x53a5c7
mov eax, esi
call fcn.00405734
mov dword [ebp - 0x1c], eax
jmp 0x53a5cc
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 0x53a61e
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