Function at 0x403e40
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437216
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4495ec]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov eax, dword [0x4495ec]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
call fcn.00406b37
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403e9a
push 0x80004005
call fcn.00404330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x498], 0
call fcn.00406b37
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403ecf
push 0x80004005
call fcn.00404330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x280]
push ecx
mov byte [esp + 0x4a0], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x27c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f04
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x280]
push edx
lea ecx, [esp + 0x20]
call fcn.00404950
push 0x10
push str._spoolPRINTERS_
lea ecx, [esp + 0x20]
call fcn.004041d0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.004048d0
push 3
push 0x43f238
lea ecx, [esp + 0x1c]
call fcn.004041d0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40408f
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40408f
mov ecx, dword [esp + 0x18]
lea edi, [esi - 0x10]
lea eax, [ecx - 0x10]
cmp eax, edi
je 0x403fdd
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x403fcb
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x403fcb
push eax
call fcn.00404480
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403fc2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x403fdd
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404950
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403fe4
sub eax, edx
mov edx, dword [esi - 0xc]
sar eax, 1
lea ecx, [esp + 0x58]
mov edi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
lea ebx, [edx + eax]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub edi, esi
sub eax, ebx
sar edi, 1
or eax, ecx
mov dword [esp + 0x20], edx
jge 0x404032
push ebx
lea ecx, [esp + 0x18]
call fcn.004043b0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
cmp edi, edx
ja 0x40403d
lea eax, [esi + edi*2]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + edx*2]
push edx
call fcn.00421603
add esp, 0x10
test ebx, ebx
jl 0x404104
cmp ebx, dword [esi - 8]
jg 0x404104
mov dword [esi - 0xc], ebx
push esi
mov word [esi + ebx*2], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f84
add esi, 0xfffffff0
mov byte [esp + 0x498], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4040b3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x498], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00421bf6
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404330
int3