Function at 0x413558
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc44
xor ecx, ecx
mov dword [ebp - 0x3b8], ecx
mov dword [ebp - 0x3bc], ecx
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
call fcn.004038a4
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x4138cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3b8]
mov eax, dword [ebp - 0x1d4]
call fcn.00406bb0
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x1d4]
call fcn.00403530
lea edx, [ebp - 0x3b8]
mov eax, dword [ebp - 4]
call fcn.00406bb0
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 4]
call fcn.00403530
mov eax, dword [ebp - 0x1d4]
call fcn.00406890
test al, al
je 0x41388e
mov eax, dword [0x41a564]
cmp dword [eax], 2
jne 0x413659
cmp dword [ebp - 4], 0
je 0x41363f
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.kernel32.dll_MoveFileExA
push 4
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
mov eax, dword [ebp - 0x1d4]
call fcn.004038b4
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x41388e
push 4
push 0
mov eax, dword [ebp - 0x1d4]
call fcn.004038b4
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x41388e
lea eax, [ebp - 0x3bc]
call fcn.004147fc
mov eax, dword [ebp - 0x3bc]
lea edx, [ebp - 0x3b8]
call fcn.00412f28
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x1dc]
mov ecx, 0x4138e4
call fcn.0040373c
lea ecx, [ebp - 0x1e0]
mov edx, 0x4138f8
mov eax, dword [ebp - 0x1dc]
call fcn.00406a68
mov eax, dword [ebp - 0x1e0]
call fcn.00413238
mov byte [ebp - 0x1e5], 0
mov eax, dword [ebp - 0x1dc]
call fcn.00406890
test al, al
je 0x4136da
mov byte [ebp - 0x1e5], 1
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1dc]
call fcn.004069c4
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d0]
call fcn.00404a9a
lea eax, [ebp - 0x1d0]
call fcn.00404d22
call fcn.00402628
mov byte [ebp - 0x1e6], 0
cmp byte [ebp - 0x1e5], 0
je 0x413830
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x3b4]
call fcn.00404a9a
lea eax, [ebp - 0x3b4]
call fcn.00404d1b
call fcn.00402628
mov byte [ebp - 0x1d5], 0
jmp 0x413818
lea edx, [ebp - 0x1e4]
lea eax, [ebp - 0x3b4]
call fcn.00403a7c
lea eax, [ebp - 0x3b4]
call fcn.00404cb8
call fcn.00402628
lea edx, [ebp - 0x3b8]
mov eax, dword [ebp - 0x1e4]
call fcn.00406504
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x1e4]
call fcn.00403530
cmp dword [ebp - 0x1e4], 0
je 0x4137a3
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.00403a54
call fcn.00404dfb
call fcn.00402628
mov edx, 0x413908
mov eax, dword [ebp - 0x1e4]
call fcn.00406410
test eax, eax
jne 0x4137be
mov byte [ebp - 0x1e6], 1
cmp byte [ebp - 0x1e6], 0
je 0x4137f4
cmp dword [ebp - 0x1e4], 0
je 0x4137e4
lea eax, [ebp - 0x3b4]
call fcn.00404b78
call fcn.00402628
test al, al
je 0x4137f4
cmp byte [ebp - 0x1d5], 0
jne 0x4137f4
push ebp
call fcn.0041327c
pop ecx
cmp dword [ebp - 0x1e4], 0
jne 0x413818
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.00403a54
call fcn.00404dfb
call fcn.00402628
lea eax, [ebp - 0x3b4]
call fcn.00404b78
call fcn.00402628
test al, al
je 0x41373c
cmp byte [ebp - 0x1e6], 0
jne 0x41385a
mov edx, 0x413908
lea eax, [ebp - 0x1d0]
call fcn.00403a54
call fcn.00404dfb
call fcn.00402628
push ebp
call fcn.0041327c
pop ecx
cmp byte [ebp - 0x1e5], 0
je 0x413873
lea eax, [ebp - 0x3b4]
call fcn.00404b3c
call fcn.00402628
lea eax, [ebp - 0x1d0]
call fcn.00404b3c
call fcn.00402628
mov eax, dword [ebp - 0x1e0]
call fcn.00413238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4138d6
lea eax, [ebp - 0x3bc]
mov edx, 2
call fcn.004034bc
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.004034bc
lea eax, [ebp - 0x1d4]
call fcn.00403498
lea eax, [ebp - 4]
call fcn.00403498
ret