Function at 0x41a710
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dca8
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x48d06c]
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 edi, edx
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00424870
mov eax, dword [0x48f42c]
add esp, 0xc
inc eax
mov dword [0x48f42c], eax
cmp eax, 0xa
jbe 0x41a773
dec eax
mov dword [0x48f42c], eax
jmp 0x41aee7
test esi, esi
je 0x41a768
push 0x104
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00438b2e
add esp, 0xc
test eax, eax
je 0x41aee1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41aee1
lea ecx, [ebp - 0x220]
call fcn.0041b790
test al, al
je 0x41aee1
inc dword [0x48f30c]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x4ec]
call fcn.004092a0
mov dword [ebp - 4], 0
push dword [eax]
push 0x486e90
push 0x48dac0
call fcn.00417de0
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp - 0x4ec]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a814
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x268]
call fcn.00407500
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x268]
push dword [ebp - 0x4ec]
cmp dword [ebp - 0x254], 8
mov edx, dword [ebp - 0x258]
cmovae ecx, dword [ebp - 0x268]
push 1
push 0x486c90
push edx
call fcn.00419bc0
mov ecx, dword [ebp - 0x258]
add esp, 0x10
dec ecx
cmp eax, ecx
je 0x41a8cd
push 0x486c90
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x238]
call fcn.00407820
add esp, 4
lea ecx, [ebp - 0x268]
push eax
call fcn.004074c0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41a8cd
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a8c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af05
push edx
push ecx
call fcn.0042297a
add esp, 8
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x298]
call fcn.0040e900
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
push 0x486e8c
lea edx, [ebp - 0x298]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.00407820
add esp, 4
lea ecx, [ebp - 0x298]
push eax
call fcn.004074c0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41a965
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a95b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af0a
push edx
push ecx
call fcn.0042297a
add esp, 8
cmp dword [ebp - 0x284], 8
lea ecx, [ebp - 0x4e8]
lea eax, [ebp - 0x298]
cmovae eax, dword [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41adb9
test byte [ebp - 0x4e8], 0x10
je 0x41ab11
mov edx, 0x486ca8
lea ecx, [ebp - 0x4bc]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x41a9d6
test ax, ax
je 0x41a9d2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x41a9d6
add ecx, 4
add edx, 4
test ax, ax
jne 0x41a9b0
xor eax, eax
jmp 0x41a9db
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ab93
mov ecx, 0x486ca0
lea eax, [ebp - 0x4bc]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41aa16
test dx, dx
je 0x41aa12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41aa16
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a9f0
xor eax, eax
jmp 0x41aa1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ab93
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x280]
call fcn.00407500
push eax
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x238]
call fcn.0041c510
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x41aa5a
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.0041a710
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41aaa7
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af0f
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp edx, 8
jb 0x41ab93
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ab02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af14
push edx
push ecx
call fcn.0042297a
add esp, 8
jmp 0x41ab93
lea eax, [ebp - 0x4bc]
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x280]
call fcn.00407820
add esp, 4
lea ecx, [ebp - 0x250]
push eax
call fcn.004074c0
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x41ab78
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ab6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af19
push edx
push ecx
call fcn.0042297a
add esp, 8
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
mov edx, edi
cmovae ecx, dword [ebp - 0x250]
call fcn.0041a310
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x4e8]
push eax
push ebx
call esi
test eax, eax
je 0x41adb2
nop dword [eax + eax]
test byte [ebp - 0x4e8], 0x10
lea eax, [ebp - 0x4bc]
je 0x41ad24
mov ecx, 0x486ca8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41abee
test dx, dx
je 0x41abea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41abee
add eax, 4
add ecx, 4
test dx, dx
jne 0x41abc8
xor eax, eax
jmp 0x41abf3
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ada0
mov ecx, 0x486ca0
lea eax, [ebp - 0x4bc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ac2c
test dx, dx
je 0x41ac28
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ac2c
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ac06
xor eax, eax
jmp 0x41ac31
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ada0
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x280]
call fcn.00407500
push eax
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x238]
call fcn.0041c510
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x41ac70
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.0041a710
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41acbd
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41acb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af05
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp edx, 8
jb 0x41ada0
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ad18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af05
push edx
push ecx
call fcn.0042297a
add esp, 8
jmp 0x41ada0
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x280]
call fcn.00407820
add esp, 4
lea ecx, [ebp - 0x250]
push eax
call fcn.004074c0
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x41ad85
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ad7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af05
push edx
push ecx
call fcn.0042297a
add esp, 8
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
mov edx, edi
cmovae ecx, dword [ebp - 0x250]
call fcn.0041a310
lea eax, [ebp - 0x4e8]
push eax
push ebx
call esi
test eax, eax
jne 0x41abb0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41adde
test edi, edi
je 0x41adde
push 4
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
dec dword [0x48f42c]
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x41ae24
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ae1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af1e
push edx
push ecx
call fcn.0042297a
add esp, 8
mov edx, dword [ebp - 0x284]
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp edx, 8
jb 0x41ae81
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ae77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af23
push edx
push ecx
call fcn.0042297a
add esp, 8
mov edx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x41aeda
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aed0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af28
push edx
push ecx
call fcn.0042297a
add esp, 8
mov eax, 1
jmp 0x41aee9
dec dword [0x48f42c]
xor eax, eax
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.00422308
mov esp, ebp
pop ebp
ret
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
int3