Function at 0x4040a0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4253a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x768
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x140]
push eax
call fcn.00404ec0
mov edi, 0x42f128
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x140]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0xa
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.0041c86c
lea eax, [esp + 0x140]
push 0x42f1d4
push eax
mov dword [esp + 0x788], ebx
call fcn.0040b7a0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x404727
mov ecx, 0x43
xor eax, eax
lea edi, [esp + 0x668]
push ebp
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x670]
push 0x10e
push ecx
stosw word es:[edi], ax
call fcn.0040b8ec
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x10
jne 0x40439d
push ebp
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x248]
push 1
lea edx, [esp + 0x24c]
push 0x118
push edx
rep stosd dword es:[edi], eax
call fcn.0040b8ec
add esp, 0x10
cmp eax, 1
jne 0x40439d
test ebx, ebx
jne 0x404393
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f0c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 0x4330b8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x674]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404242
test cl, cl
je 0x40423e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404242
add eax, 2
add esi, 2
test cl, cl
jne 0x40421e
xor eax, eax
jmp 0x404247
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4042a7
lea edi, [esp + 0x674]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f0c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x244]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x18], eax
and ecx, 3
lea edx, [esp + 0x3c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
push eax
push edx
call fcn.004053d0
mov eax, dword [esp + 0x358]
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp eax, ecx
jne 0x404310
mov ecx, dword [esp + 0x348]
mov eax, dword [esp + 0x18]
cmp ecx, eax
je 0x404315
mov ebx, 1
push str..sec
lea ecx, [esp + 0x14]
call fcn.0041d17c
lea edx, [esp + 0x244]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x784], 1
call fcn.0041d17c
lea ecx, [esp + 0x10]
mov byte [esp + 0x780], 2
call fcn.0041d48c
lea ecx, [esp + 0x14]
call fcn.0041d48c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0040bc80
add esp, 8
test eax, eax
je 0x404371
mov ebx, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x780], 1
call fcn.0041d10e
lea ecx, [esp + 0x10]
mov byte [esp + 0x780], 0
call fcn.0041d10e
test byte [ebp + 0xc], 0x10
je 0x404178
push ebp
call fcn.0040b6f2
add esp, 4
test ebx, ebx
je 0x404727
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x460]
lea edx, [esp + 0x460]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x140]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x460]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x460]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x460]
lea edx, [esp + 0x140]
push ecx
push edx
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x35c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x35c]
push eax
call fcn.00404ec0
mov edi, str.ldcab.lddat
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x35c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x564]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x564]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x35c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x564]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x564]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x564]
lea edx, [esp + 0x35c]
push ecx
push edx
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x244]
push eax
call fcn.00404ec0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x40]
add esp, 4
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x4330b8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x674]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404598
test cl, cl
je 0x404594
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404598
add eax, 2
add esi, 2
test cl, cl
jne 0x404574
xor eax, eax
jmp 0x40459d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4045fd
mov edi, 0x42f0c8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x674]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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 [0x42f8cc]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x10]
push ecx
push str.GetFilesInTree:_s
push edx
mov byte [esp + 0x78c], 3
call fcn.0041c74a
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x433191
push 0
push eax
call fcn.00407170
lea ecx, [esp + 0x20]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.004054f0
lea eax, [esp + 0x44]
lea ecx, [esp + 0x67c]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x254]
push edx
push eax
call fcn.00402820
add esp, 0x18
lea ecx, [esp + 0x140]
test eax, eax
push ecx
jne 0x4046e6
lea ecx, [esp + 0x18]
call fcn.0041d17c
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
mov bl, 4
push edx
push eax
mov byte [esp + 0x788], bl
call fcn.004058f0
mov ecx, dword [esp + 0x790]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x790], 5
call fcn.00404af0
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x780], bl
call fcn.0041d10e
lea ecx, [esp + 0x14]
mov byte [esp + 0x780], 3
call fcn.0041d10e
lea edx, [esp + 0x460]
push edx
call ebp
lea eax, [esp + 0x564]
push eax
call ebp
jmp 0x404716
call ebp
lea edx, [esp + 0x35c]
push edx
call ebp
lea eax, [esp + 0x140]
lea ecx, [esp + 0x460]
push eax
push ecx
call ebx
lea edx, [esp + 0x35c]
lea eax, [esp + 0x564]
push edx
push eax
call ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x780], 0
call fcn.0041d10e
lea ecx, [esp + 0x20]
mov dword [esp + 0x780], 0xffffffff
call fcn.0041c8e0
mov ecx, dword [esp + 0x778]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x774
ret