Function at 0x436f1c
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x27
push 0
push 0
dec ecx
jne 0x436f25
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4371d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x4371aa
push dword fs:[eax]
mov dword fs:[eax], esp
test cl, cl
je 0x436fbd
mov eax, dword [ebp - 8]
call fcn.00409c28
mov eax, dword [ebp - 8]
call fcn.00409af4
test al, al
jne 0x436fbd
push 0
mov eax, dword [ebp - 8]
call fcn.00405260
push eax
mov eax, dword [ebp - 4]
call fcn.00405260
mov ebx, eax
push ebx
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x436fbd
mov edx, ebx
lea eax, [ebp - 0x114]
call fcn.00404f98
mov eax, dword [ebp - 0x114]
call fcn.00409c28
test al, al
je 0x436fbd
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4371b4
mov byte [ebp - 9], 1
mov eax, dword [0x46b504]
cmp dword [eax], 2
jne 0x436fe9
push 5
mov eax, dword [ebp - 8]
call fcn.00405260
push eax
mov eax, dword [ebp - 4]
call fcn.00405260
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x4371a0
mov dl, 1
mov eax, dword [0x41a700]
call fcn.00403e6c
mov dword [ebp - 0x10], eax
push 0xff
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor eax, eax
push ebp
push 0x4370ac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00405010
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.0040dde4
lea eax, [ebp - 0x118]
mov edx, 0x4371ec
call fcn.00405068
mov eax, dword [ebp - 0x118]
call fcn.00409af4
test al, al
je 0x4370a2
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00405010
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.0040dde4
lea eax, [ebp - 0x120]
mov edx, 0x4371ec
call fcn.00405068
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4370be
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call fcn.00409150
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x437200
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x437108
mov edx, 0x437200
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 8]
call fcn.00409eec
push dword [ebp - 0x134]
push 0x437214
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.00409eec
push dword [ebp - 0x138]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00405120
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00405010
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.0040dde4
lea eax, [ebp - 0x13c]
mov edx, 0x4371ec
call fcn.00405068
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x10]
call fcn.00403e9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4371b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371d9
lea eax, [ebp - 0x140]
mov edx, 0xc
call fcn.00404dc4
ret