Function at 0x40c790
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4d63cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, dword [sym.imp.user32.dll_SendMessageA]
push 0
mov eax, dword [ebx + 0xc]
push 0
push 0x1032
push eax
call esi
mov ebp, eax
cmp ebp, 1
mov dword [esp + 0x40], ebp
jl 0x40cb5a
mov ecx, ebx
call fcn.00419cf0
mov ecx, ebx
call fcn.00419e50
mov ecx, dword [ebx + 0xc]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
call esi
cmp eax, 0xffffffff
jne 0x40c804
mov edx, dword [ebx + 0xc]
push 2
push eax
push 0x100c
push edx
call esi
mov eax, dword [ebx + 0xc]
push edi
push 0
push 0
push 0x1004
push eax
call esi
push 0x7f02
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.user32.dll_LoadCursorA]
push eax
call dword [sym.imp.user32.dll_SetCursor]
lea eax, [ebx + 0x20c]
mov dword [esp + 0x10], 1
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
lea ecx, [esp + 0x1c]
or edi, 0xffffffff
call fcn.0041e520
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x178], eax
mov dword [esp + 0x2c], eax
jle 0x40c992
mov dword [esp + 0x14], ebp
jmp 0x40c870
mov edi, dword [esp + 0x40]
mov ecx, dword [ebx + 0xc]
push 2
push edi
push 0x100c
push ecx
call esi
push eax
mov ecx, ebx
mov dword [esp + 0x44], eax
call fcn.004124c0
mov ebp, eax
test ebp, ebp
je 0x40c983
mov eax, dword [ebp + 8]
cmp eax, 3
je 0x40c983
cmp eax, 2
je 0x40c983
mov edi, 1
cmp eax, edi
jne 0x40c8b6
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 0x68]
lea edx, [esp + 0x68]
push eax
lea eax, [ebx + 0x20c]
push eax
push edx
call fcn.00442e30
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add esp, 0xc
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x40c941
mov edx, dword [esp + 0x30]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x40], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
push eax
call fcn.004c7e56
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov esi, dword [sym.imp.user32.dll_SendMessageA]
add esp, 8
add eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov edi, 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax + ecx*4], ebp
mov edx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 1]
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [esp + 0x10], edx
jne 0x40c983
mov eax, dword [0x4fb830]
test eax, eax
je 0x40c983
mov dword [esp + 0x180], edi
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x40c86c
mov eax, dword [esp + 0x10]
push eax
call fcn.004c7e90
mov ecx, dword [esp + 0x28]
mov esi, eax
add esp, 4
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x14], esi
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x40ca2c
jmp 0x40c9bb
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x40c9cc
test eax, eax
jl 0x40c9cc
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + eax*4]
jmp 0x40c9ce
xor eax, eax
mov eax, dword [eax + 0x68]
lea edx, [esp + 0x68]
push eax
lea eax, [ebx + 0x20c]
push eax
push edx
call fcn.00442e30
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov edx, dword [esp + 0x14]
mov ecx, eax
lea esi, [esp + 0x68]
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc ebp
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40c9b7
mov esi, dword [esp + 0x14]
mov byte [esi + ebp], 0
mov ecx, dword [ebx + 8]
push 1
push ecx
call dword [sym.imp.user32.dll_KillTimer]
mov edx, dword [ebx + 0x208]
mov edi, dword [edx + 0x30]
test edi, edi
je 0x40ca68
mov ecx, edi
call fcn.004549b0
test eax, eax
je 0x40ca68
mov ecx, dword [ebx + 0x208]
call fcn.0045e270
push 1
mov ecx, edi
call fcn.00454350
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 8]
mov dword [esp + 0x4c], 3
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
cmp eax, 0xa
mov dword [esp + 0x50], esi
pop edi
jge 0x40ca99
or byte [esp + 0x54], 4
mov eax, dword [esp + 0x180]
test eax, eax
je 0x40caa9
or byte [esp + 0x54], 0x40
mov eax, dword [esp + 0x17c]
test eax, eax
jne 0x40cab9
or byte [esp + 0x54], 0x10
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.shell32.dll_SHFileOperation]
push esi
call fcn.004c7e56
add esp, 4
lea edx, [esp + 0x18]
mov ecx, ebx
push 1
push edx
call fcn.00419800
mov ecx, ebx
call fcn.00411a80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40cb1c
mov eax, dword [0x4fb924]
test eax, eax
je 0x40cb1c
mov eax, dword [ebx + 0x10]
mov esi, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0xb
push eax
call esi
push 1
push 0
mov ecx, ebx
call fcn.00416d20
mov ecx, dword [ebx + 0x10]
push 0
push 1
push 0xb
push ecx
call esi
mov eax, dword [0x4fb70c]
test eax, eax
je 0x40cb2e
push 1
mov ecx, ebx
call fcn.0040d1c0
mov ecx, ebx
call fcn.00419d80
mov ecx, ebx
mov dword [ebx + 0x428], 0
call fcn.00419eb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x174], 0xffffffff
call fcn.0041e630
mov ecx, dword [esp + 0x16c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x16c
ret 8