Function at 0x40e840
Capabilities:
Move file

Disassembly:
sub esp, 0x160
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 8]
push 0
push 0
push 0x1032
push eax
mov dword [esp + 0x28], esi
call edi
mov ebp, eax
cmp ebp, 1
jl 0x40ebc9
mov ecx, esi
call fcn.0041a530
mov ecx, esi
call fcn.0041a670
mov ecx, dword [esi + 8]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40e8a0
mov edx, dword [esi + 8]
push 2
push eax
push 0x100c
push edx
call edi
mov eax, dword [esi + 8]
push 0
push 0
push 0x1004
push eax
call edi
push 0x7f02
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esi + 0xa4]
mov dword [esp + 0x10], 1
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x24]
or ebx, 0xffffffff
call fcn.0041e310
test ebp, ebp
mov dword [esp + 0x34], 0
jle 0x40ea0b
mov dword [esp + 0x1c], ebp
jmp 0x40e90a
mov ebx, dword [esp + 0x44]
mov ecx, dword [esi + 8]
push 2
push ebx
push 0x100c
push ecx
call edi
push eax
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.004136f0
mov ebp, eax
test ebp, ebp
je 0x40e9fc
mov eax, dword [ebp + 4]
cmp eax, 3
je 0x40e9fc
cmp eax, 2
je 0x40e9fc
cmp eax, 1
jne 0x40e94c
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0x5c]
mov eax, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.0043c6e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea edx, [eax + 1]
cmp ecx, edx
jne 0x40e9d1
mov ecx, dword [esp + 0x38]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004985f0
mov ebx, eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov edi, ebx
lea ecx, [eax*4 + 4]
add esp, 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 + 0x28]
push eax
call fcn.00498600
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
add eax, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [edx + eax*4], ebp
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
lea eax, [edx + eax + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x40e906
mov eax, dword [esi + 0x6e8]
test eax, eax
je 0x40ea26
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00408da0
jmp 0x40ebc0
mov edx, dword [esp + 0x10]
push edx
call fcn.004985f0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add esp, 4
xor ebp, ebp
xor ebx, ebx
test eax, eax
jle 0x40eaac
cmp ebx, eax
jge 0x40ea54
test ebx, ebx
jl 0x40ea54
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx*4]
jmp 0x40ea56
xor eax, eax
mov ecx, dword [eax + 0x5c]
mov edx, dword [esp + 0x20]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.0043c6e0
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
mov ecx, eax
lea esi, [esp + 0x68]
lea edi, [ebp + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + eax], 0
mov eax, dword [esp + 0x2c]
inc ebp
inc ebx
cmp ebx, eax
jl 0x40ea47
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 1
mov byte [ebp + ecx], 0
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0xa0]
mov edi, dword [eax + 0x28]
test edi, edi
je 0x40eaed
mov ecx, edi
call fcn.00444ee0
test eax, eax
je 0x40eaed
mov ecx, dword [esi + 0xa0]
call fcn.0044a5d0
push 1
mov ecx, edi
call fcn.004448d0
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
stosw word es:[edi], ax
mov eax, dword [esp + 0x178]
mov edi, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 3
mov dword [esp + 0x50], edi
je 0x40eb23
or byte [esp + 0x58], 0x40
mov eax, dword [esp + 0x174]
test eax, eax
jne 0x40eb33
or byte [esp + 0x58], 0x10
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push edi
call fcn.00498600
add esp, 4
lea eax, [esp + 0x24]
mov ecx, esi
push 1
push eax
call fcn.0041a090
mov ecx, esi
call fcn.00412dd0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40eb96
mov eax, dword [0x4cab50]
test eax, eax
je 0x40eb96
mov ecx, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb
push ecx
call edi
push 0
push 0
mov ecx, esi
call fcn.00418280
mov edx, dword [esi + 0xc]
push 0
push 1
push 0xb
push edx
call edi
mov eax, dword [0x4ca944]
test eax, eax
je 0x40eba8
push 1
mov ecx, esi
call fcn.0040f0b0
mov ecx, esi
call fcn.0041a5b0
mov ecx, esi
mov dword [esi + 0x2b8], 0
call fcn.0041a6c0
lea ecx, [esp + 0x24]
call fcn.0041e3a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret 8