Function at 0x412420
Capabilities:
Enumerate files on windows
Move file

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x504], eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
push 0x276f
push dword [0x4def88]
mov dword [esp + 0x48], edx
mov edi, ecx
call ebp
push 0x2785
push dword [0x4def88]
mov ebx, eax
mov dword [esp + 0x24], ebx
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov dword [esp + 0x40], eax
call ebp
cmp word [edi + eax*2 - 2], 0x5c
jne 0x412483
push edi
call ebp
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
push edi
mov dword [esp + 0x28], 0
call ebp
push 0
push 0
inc eax
mov dword [esp + 0x30], 1
push 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0x1312d00
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0x1312d00
push 8
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x412aba
push 2
push 0x400
call fcn.0048f743
push 2
push 0x400
mov dword [esp + 0x28], eax
call fcn.0048f743
push 2
push 0x400
mov esi, eax
call fcn.0048f743
push 2
push 0x400
mov dword [esp + 0x40], eax
call fcn.0048f743
add esp, 0x20
mov dword [esp + 0x44], eax
push edi
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
lea edi, [edi + eax*2]
push edi
push dword [esp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x24]
inc ecx
push 0x4ad2c8
add ecx, eax
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0xb8]
mov edi, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x412a88
test edi, edi
je 0x412a84
cmp dword [0x4c5188], 0
je 0x412ac2
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [esp + 0xe4]
push 0x4ad2d0
push eax
call edi
test eax, eax
je 0x412a6b
push 0x4ad2d4
lea eax, [esp + 0xe8]
push eax
call edi
test eax, eax
je 0x412a6b
test byte [esp + 0xb8], 0x10
lea eax, [esp + 0xe4]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.recycle
push eax
je 0x41284a
call edi
test eax, eax
jne 0x412a6b
push str.wintools
lea eax, [esp + 0xe8]
push eax
call edi
test eax, eax
jne 0x412a6b
push str.systemindex
lea eax, [esp + 0xe8]
push eax
call edi
test eax, eax
jne 0x412a6b
lea eax, [esp + 0xe4]
push eax
push dword [esp + 0x1c]
push 0x4ad304
push 0x400
push esi
call fcn.0040a3c0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x38]
add eax, edi
mov ecx, dword [esp + 0x34]
lea eax, [eax*2 + 2]
cmp eax, ecx
mov eax, dword [esp + 0x14]
jb 0x412685
add ecx, 0x1312d00
push ecx
push eax
push 8
push dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x412aa2
inc dword [esp + 0x28]
lea eax, [eax + edi*2]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x3c]
inc edi
add edi, eax
mov edx, esi
mov dword [esp + 0x38], edi
call fcn.00410a30
test eax, eax
jne 0x412a6b
push esi
mov edx, 0x4add24
mov ecx, str.FILE
call fcn.00477440
push eax
push 0x400
push 0x4cf000
call fcn.0040a3c0
add esp, 0x10
cmp dword [0x4deb74], 2
jne 0x412717
push 0
push 0
push 0x130b
push 0x2763
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
cmp eax, 5
je 0x412717
push 0x4cf000
push 1
push 0x40b
push dword [0x4deb68]
call ebp
mov edi, dword [esp + 0x44]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4ae2dc
push edi
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x412a6b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 0
push 0x1004
push ebx
call ebp
push 0x4cf800
push 0
push 0x104d
push ebx
mov dword [0x4cf804], eax
mov dword [0x4cf81c], 1
mov dword [0x4cf814], esi
call ebp
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], 2
push eax
push dword [0x4cf804]
mov dword [esp + 0x68], str.Directory
push 0x1074
push ebx
call ebp
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
push eax
push dword [0x4cf804]
mov dword [esp + 0x5c], 1
push 0x1074
push ebx
call ebp
xor eax, eax
push 0x206
push eax
mov word [esp + 0x310], ax
lea eax, [esp + 0x312]
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x412a5c
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x412a5c
movzx eax, word [esp + 0xa2]
push eax
movzx eax, word [esp + 0xa4]
push eax
movzx eax, word [esp + 0xa6]
push eax
movzx eax, word [esp + 0xa6]
push eax
movzx eax, word [esp + 0xa8]
jmp 0x412a1b
call edi
test eax, eax
jne 0x412a6b
push str.wintools
lea eax, [esp + 0xe8]
push eax
call edi
test eax, eax
jne 0x412a6b
push str.systemindex
lea eax, [esp + 0xe8]
push eax
call edi
test eax, eax
jne 0x412a6b
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xe4]
push eax
push dword [esp + 0x1c]
push 0x4ad304
push 0x400
push edi
call fcn.0040a3c0
mov ecx, dword [esp + 0x50]
add esp, 0x14
mov edx, edi
call fcn.00410a30
test eax, eax
jne 0x412a6b
push eax
push 0x20000080
push 3
push eax
push 4
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4128d8
xor eax, eax
jmp 0x4128e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
test eax, eax
je 0x412a6b
mov ebx, dword [esp + 0xd4]
xor edi, edi
add edi, dword [esp + 0xd8]
push 0
push 0
push 0x1004
push dword [esp + 0x28]
adc ebx, 0
call ebp
push 0x4cf800
push 0
push 0x104d
push dword [esp + 0x28]
mov dword [0x4cf804], eax
mov eax, dword [esp + 0x30]
mov dword [0x4cf81c], 0
mov dword [0x4cf814], eax
call ebp
push ebx
push edi
mov dword [esp + 0x5c], 2
call fcn.00464970
add esp, 8
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
push eax
push dword [0x4cf804]
push 0x1074
push dword [esp + 0x28]
call ebp
mov eax, dword [esp + 0x40]
add dword [0x4ce7f0], edi
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
adc dword [0x4ce7f4], ebx
mov ebx, dword [esp + 0x1c]
push eax
push dword [0x4cf804]
mov dword [esp + 0x5c], 1
push 0x1074
push ebx
call ebp
xor eax, eax
push 0x206
push eax
mov word [esp + 0x310], ax
lea eax, [esp + 0x312]
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x412a5c
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x412a5c
movzx eax, word [esp + 0xb2]
push eax
movzx eax, word [esp + 0xb4]
push eax
movzx eax, word [esp + 0xb6]
push eax
movzx eax, word [esp + 0xb6]
push eax
movzx eax, word [esp + 0xb8]
push eax
push 0x4ae27c
lea eax, [esp + 0x320]
push 0x104
push eax
call fcn.0040a3c0
add esp, 0x20
mov dword [esp + 0x54], 3
lea eax, [esp + 0x308]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
push eax
push dword [0x4cf804]
push 0x1074
push ebx
call ebp
push 0x1869f
push 0
push 0x1014
push ebx
call ebp
lea eax, [esp + 0xb8]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x412580
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x28]
je 0x412b04
mov edi, dword [esp + 0x14]
jmp 0x412522
push 0x10
push str.Error_23
push str.No_free_memory.
push dword [0x4def88]
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
jmp 0x412b41
call fcn.004118f0
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x20]
call fcn.0048f74e
add esp, 4
push esi
call fcn.0048f74e
add esp, 4
push dword [esp + 0x18]
call fcn.0048f74e
add esp, 4
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, dword [esp + 0x44]
push eax
call fcn.0048f74e
add esp, 4
push dword [esp + 0x20]
call fcn.0048f74e
add esp, 4
push esi
call fcn.0048f74e
add esp, 4
push dword [esp + 0x18]
call fcn.0048f74e
add esp, 4
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, 1
mov ecx, dword [esp + 0x514]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x50c
ret