Function at 0x4182d4
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.00403a6c
mov eax, dword [ebp - 4]
call fcn.00403a6c
xor eax, eax
push ebp
push 0x41864b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3b8]
mov eax, dword [ebp - 0x1d4]
call fcn.004072bc
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x1d4]
call fcn.004036d4
lea edx, [ebp - 0x3b8]
mov eax, dword [ebp - 4]
call fcn.004072bc
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 4]
call fcn.004036d4
mov eax, dword [ebp - 0x1d4]
call fcn.00406f40
test al, al
je 0x41860a
mov eax, dword [0x449c6c]
cmp dword [eax], 2
jne 0x4183d5
cmp dword [ebp - 4], 0
je 0x4183bb
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00403a7c
push eax
call sub.KERNEL32.DLL_MoveFileExA
push 4
mov eax, dword [ebp - 4]
call fcn.00403a7c
push eax
mov eax, dword [ebp - 0x1d4]
call fcn.00403a7c
push eax
call sub.KERNEL32.DLL_MoveFileExA
jmp 0x41860a
push 4
push 0
mov eax, dword [ebp - 0x1d4]
call fcn.00403a7c
push eax
call sub.KERNEL32.DLL_MoveFileExA
jmp 0x41860a
lea eax, [ebp - 0x3bc]
call fcn.0041a1d0
mov eax, dword [ebp - 0x3bc]
lea edx, [ebp - 0x3b8]
call fcn.00417b08
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x1dc]
mov ecx, 0x418660
call fcn.00403904
lea ecx, [ebp - 0x1e0]
mov edx, 0x418674
mov eax, dword [ebp - 0x1dc]
call fcn.004070e0
mov eax, dword [ebp - 0x1e0]
call fcn.00417fb4
mov byte [ebp - 0x1e5], 0
mov eax, dword [ebp - 0x1dc]
call fcn.00406f40
test al, al
je 0x418456
mov byte [ebp - 0x1e5], 1
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1dc]
call fcn.0040703c
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d0]
call fcn.00404eea
lea eax, [ebp - 0x1d0]
call fcn.00405172
call fcn.0040267c
mov byte [ebp - 0x1e6], 0
cmp byte [ebp - 0x1e5], 0
je 0x4185ac
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x3b4]
call fcn.00404eea
lea eax, [ebp - 0x3b4]
call fcn.0040516b
call fcn.0040267c
mov byte [ebp - 0x1d5], 0
jmp 0x418594
lea edx, [ebp - 0x1e4]
lea eax, [ebp - 0x3b4]
call fcn.00403ca0
lea eax, [ebp - 0x3b4]
call fcn.00405108
call fcn.0040267c
lea edx, [ebp - 0x3b8]
mov eax, dword [ebp - 0x1e4]
call fcn.00406b88
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x1e4]
call fcn.004036d4
cmp dword [ebp - 0x1e4], 0
je 0x41851f
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.00403c78
call fcn.0040524b
call fcn.0040267c
mov edx, 0x418684
mov eax, dword [ebp - 0x1e4]
call fcn.00406a94
test eax, eax
jne 0x41853a
mov byte [ebp - 0x1e6], 1
cmp byte [ebp - 0x1e6], 0
je 0x418570
cmp dword [ebp - 0x1e4], 0
je 0x418560
lea eax, [ebp - 0x3b4]
call fcn.00404fc8
call fcn.0040267c
test al, al
je 0x418570
cmp byte [ebp - 0x1d5], 0
jne 0x418570
push ebp
call fcn.00417ff8
pop ecx
cmp dword [ebp - 0x1e4], 0
jne 0x418594
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.00403c78
call fcn.0040524b
call fcn.0040267c
lea eax, [ebp - 0x3b4]
call fcn.00404fc8
call fcn.0040267c
test al, al
je 0x4184b8
cmp byte [ebp - 0x1e6], 0
jne 0x4185d6
mov edx, 0x418684
lea eax, [ebp - 0x1d0]
call fcn.00403c78
call fcn.0040524b
call fcn.0040267c
push ebp
call fcn.00417ff8
pop ecx
cmp byte [ebp - 0x1e5], 0
je 0x4185ef
lea eax, [ebp - 0x3b4]
call fcn.00404f8c
call fcn.0040267c
lea eax, [ebp - 0x1d0]
call fcn.00404f8c
call fcn.0040267c
mov eax, dword [ebp - 0x1e0]
call fcn.00417fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418652
lea eax, [ebp - 0x3bc]
mov edx, 2
call fcn.00403660
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.00403660
lea eax, [ebp - 0x1d4]
call fcn.0040363c
lea eax, [ebp - 4]
call fcn.0040363c
ret