Function at 0x539694
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 0x539a63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5639dc]
cmp dword [eax], 2
je 0x539a03
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, 0x539a7c
call fcn.00405580
mov byte [ebp - 9], 0
mov byte [ebp - 0xa], 0
xor eax, eax
push ebp
push 0x5399bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5399ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00539400
test al, al
je 0x5397b4
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, 0x539a94
call fcn.00539500
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 [0x5637dc]
mov byte [eax], 0x20
lea eax, [ebp - 0x1e8]
call fcn.00403524
call fcn.004030c0
mov byte [ebp - 9], 1
jmp 0x5397bf
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 [0x5637dc]
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 0x539883
jmp 0x53986b
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 0x539851
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x5b
jne 0x539851
mov edx, 0x539aa4
mov eax, dword [ebp - 0x10]
call fcn.0040c8e4
test eax, eax
jne 0x53984b
mov byte [ebp - 0x15], 1
jmp 0x539851
cmp byte [ebp - 0x15], 0
jne 0x539883
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 0x5397fb
cmp byte [ebp - 0x15], 0
jne 0x5398a3
mov edx, 0x539aa4
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
test esi, esi
je 0x5398b3
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00539640
jmp 0x5398c0
lea eax, [ebp - 0x14]
mov edx, 0x539ab8
call fcn.004052fc
push dword [ebp - 0x14]
push 0x539ac4
lea edx, [ebp - 0x4cc]
mov eax, edi
call fcn.00539640
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 0x539974
test bl, bl
je 0x539960
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405950
call fcn.00403e2c
call fcn.004030c0
jmp 0x539960
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 0x53992a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5399b5
cmp byte [ebp - 0xa], 0
je 0x539997
lea eax, [ebp - 0x3b4]
call fcn.0040385c
call fcn.004030c0
cmp byte [ebp - 9], 0
je 0x5399ad
lea eax, [ebp - 0x1e8]
call fcn.0040385c
call fcn.004030c0
ret
test esi, esi
je 0x539a13
mov eax, esi
call fcn.00405734
mov dword [ebp - 0x1c], eax
jmp 0x539a18
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 0x539a6a
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