Function at 0x4f5b18
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc44
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3b8], ecx
mov dword [ebp - 0x3bc], 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 0x4f5ec0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52c2b0]
cmp dword [eax], 2
je 0x4f5e60
mov edx, dword [0x52bb88]
mov edx, dword [edx]
lea eax, [ebp - 4]
mov ecx, 0x4f5ed8
call fcn.004057a4
mov byte [ebp - 9], 0
mov byte [ebp - 0xa], 0
xor eax, eax
push ebp
push 0x4f5e1c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f5e0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f5864
test al, al
je 0x4f5bf7
lea ecx, [ebp - 8]
mov eax, dword [0x52bb88]
mov eax, dword [eax]
mov edx, 0x4f5ef0
call fcn.004f597c
mov eax, dword [ebp - 4]
call fcn.00405958
push eax
push 0
push 0
push 0
call sub.kernel32.dll_WritePrivateProfileStringA
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1e8]
call fcn.004037d4
mov eax, dword [0x52c0c8]
mov byte [eax], 0x20
lea eax, [ebp - 0x1e8]
call fcn.00403564
call fcn.0040308c
mov byte [ebp - 9], 1
jmp 0x4f5c02
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405520
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x3b4]
call fcn.004037d4
mov eax, dword [0x52c0c8]
mov byte [eax], 0x11
lea eax, [ebp - 0x3b4]
call fcn.00403570
call fcn.0040308c
mov byte [ebp - 0xa], 1
mov byte [ebp - 0x15], 0
xor ebx, ebx
cmp byte [ebp - 9], 0
je 0x4f5ce0
jmp 0x4f5cc8
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1e8]
call fcn.00403d10
lea eax, [ebp - 0x1e8]
call fcn.00403d7c
call fcn.0040308c
mov bl, 1
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040c408
cmp dword [ebp - 0x14], 0
je 0x4f5cae
mov eax, 1
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4f5c84
cmp eax, dword [edx - 4]
jb 0x4f5c89
call fcn.00404574
inc eax
cmp byte [edx + eax - 1], 0x5b
jne 0x4f5cae
mov edx, 0x4f5f00
mov eax, dword [ebp - 0x10]
call fcn.0040c280
test eax, eax
jne 0x4f5ca8
mov byte [ebp - 0x15], 1
jmp 0x4f5cae
cmp byte [ebp - 0x15], 0
jne 0x4f5ce0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405b74
call fcn.004040c4
call fcn.0040308c
xor ebx, ebx
lea eax, [ebp - 0x1e8]
call fcn.00403b1c
call fcn.0040308c
test al, al
je 0x4f5c41
cmp byte [ebp - 0x15], 0
jne 0x4f5d00
mov edx, 0x4f5f00
lea eax, [ebp - 0x3b4]
call fcn.00405b74
call fcn.004040c4
call fcn.0040308c
test esi, esi
je 0x4f5d10
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004f5abc
jmp 0x4f5d1d
lea eax, [ebp - 0x14]
mov edx, 0x4f5f14
call fcn.00405520
push dword [ebp - 0x14]
push 0x4f5f20
lea edx, [ebp - 0x3bc]
mov eax, edi
call fcn.004f5abc
push dword [ebp - 0x3bc]
lea eax, [ebp - 0x3b8]
mov edx, 3
call fcn.00405818
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x3b4]
call fcn.00405b74
call fcn.004040c4
call fcn.0040308c
cmp byte [ebp - 9], 0
je 0x4f5dd1
test bl, bl
je 0x4f5dbd
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405b74
call fcn.004040c4
call fcn.0040308c
jmp 0x4f5dbd
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1e8]
call fcn.00403d10
lea eax, [ebp - 0x1e8]
call fcn.00403d7c
call fcn.0040308c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.00405b74
call fcn.004040c4
call fcn.0040308c
lea eax, [ebp - 0x1e8]
call fcn.00403b1c
call fcn.0040308c
test al, al
je 0x4f5d87
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5e12
cmp byte [ebp - 0xa], 0
je 0x4f5df4
lea eax, [ebp - 0x3b4]
call fcn.00403978
call fcn.0040308c
cmp byte [ebp - 9], 0
je 0x4f5e0a
lea eax, [ebp - 0x1e8]
call fcn.00403978
call fcn.0040308c
ret
test esi, esi
je 0x4f5e70
mov eax, esi
call fcn.00405958
mov dword [ebp - 0x1c], eax
jmp 0x4f5e75
xor eax, eax
mov dword [ebp - 0x1c], eax
push 5
mov eax, dword [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00405958
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5ec7
lea eax, [ebp - 0x3bc]
mov edx, 2
call fcn.004054ac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004054ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054ac
ret