Function at 0x406350
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477973
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x48300c]
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 eax, ecx
mov dword [ebp - 0x230], eax
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x234], eax
mov ebx, dword [eax + 8]
lea edi, [eax + 0xc]
shr ebx, 1
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x406a2e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
test ebx, ebx
je 0x406433
test edi, edi
je 0x406a24
push 0
push 0
push 0
push 0
push ebx
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x406a24
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, edi
or ecx, edx
jge 0x406408
push edi
lea ecx, [ebp - 0x21c]
call fcn.00405500
mov esi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x234]
push 0
push 0
push edi
push esi
push ebx
add eax, 0xc
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp edi, dword [esi - 8]
jg 0x406a24
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov ebx, dword [ebp - 0x230]
add ebx, 0x24
mov dword [ebp - 4], 1
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x406461
push ebx
lea ecx, [ebp - 0x240]
call fcn.004036b0
mov esi, dword [ebp - 0x240]
jmp 0x4064dd
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x40647a
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40647a
mov edi, dword [ebx]
dec edi
add edi, esi
jmp 0x406495
call fcn.004018e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edi, dword [ebx]
mov ecx, eax
dec edi
add edi, esi
test ecx, ecx
je 0x406a2e
test edi, edi
je 0x406a24
mov eax, dword [ecx]
push 1
push 1
call dword [eax]
test eax, eax
je 0x406a38
cmp dword [eax + 8], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
jl 0x406a24
push 1
mov dword [esi - 0xc], 1
mov edx, 1
push edi
mov ecx, esi
mov byte [esi + 1], 0
call fcn.00403740
add esp, 8
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 2
mov ecx, dword [ebx]
test ecx, ecx
je 0x4064f5
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40650b
call fcn.004018e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x406a2e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x47c084
mov byte [ebp - 4], 3
shr eax, 0x10
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x406545
mov eax, 0x47c084
movzx eax, ax
push eax
call fcn.004052f0
jmp 0x40654f
push 0x47c084
call fcn.004050b0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x406a2e
push edi
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 8
test eax, eax
setne byte [ebp - 0x221]
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40658f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4065a7
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x221], 0
je 0x406696
call fcn.004018e0
test eax, eax
je 0x406a2e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
jne 0x4065f4
mov eax, 0x47c084
movzx eax, ax
push eax
call fcn.004052f0
jmp 0x4065fe
push 0x47c084
call fcn.004050b0
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
lea edx, [edx + 0x24]
call fcn.00406aa0
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x244]
call fcn.00406aa0
add esp, 8
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.00405140
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406669
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40668a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
jmp 0x4066ce
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
lea edx, [edx + 0x24]
call fcn.00406aa0
add esp, 4
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 8
call fcn.00405140
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x21c]
cmp dword [edi - 4], 1
jle 0x406705
push dword [edi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00405200
mov edi, dword [ebp - 0x21c]
test edi, edi
je 0x40674e
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406710
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x40674e
lea eax, [ebx + ebx]
call fcn.00476ed0
mov esi, esp
test esi, esi
je 0x40674e
push ebx
push esi
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x406750
xor esi, esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xc
jg 0x406788
push 0x7e
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x406788
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0x2e
push edi
xor ebx, ebx
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
mov dword [ebp - 0x228], eax
test eax, eax
je 0x4067d2
mov ecx, dword [0x484180]
mov esi, dword [ecx]
cmp esi, ecx
je 0x4067d2
mov edi, eax
nop
mov edx, dword [esi + 8]
mov ecx, edi
call fcn.00403050
mov ebx, eax
test ebx, ebx
jne 0x4067cc
mov ecx, dword [esi]
mov esi, ecx
cmp ecx, dword [0x484180]
jne 0x4067b0
mov edi, dword [ebp - 0x21c]
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x406a2e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x238]
call fcn.00405140
mov eax, dword [ebp - 0x230]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x406890
mov eax, dword [edi - 0xc]
push 0
push 0
push eax
push edi
push 0
push 3
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
mov dword [ebp - 0x228], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x406a38
push dword [ebp - 0x228]
push esi
push dword [ebp - 0x22c]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov ebx, dword [ebp - 0x230]
push esi
push dword [ebx + 0x18]
push str.__d___ls
push str.ProcessNotification
push dword [0x484188]
call fcn.00403170
add esp, 0x10
jmp 0x406927
test ebx, ebx
je 0x40695e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40695e
mov eax, dword [edi - 0xc]
push 0
push 0
push eax
push edi
push 0
push 3
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
mov dword [ebp - 0x22c], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x406a38
push dword [ebp - 0x22c]
push esi
push dword [ebp - 0x228]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov ebx, dword [ebp - 0x230]
push esi
push dword [ebx + 0x18]
push str.__d___ls
push str.ProcessNotification
push dword [0x484188]
call fcn.00403170
push str._RECYCLE.BIN
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0x20
test eax, eax
jne 0x40695e
sub esp, 8
mov eax, dword [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x22c], ecx
mov dword [ecx], eax
lea eax, [ebp - 0x238]
push eax
add ecx, 4
call fcn.004036b0
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebx + 0x1c]
push dword [eax + 4]
call fcn.00406cd0
mov ecx, eax
call fcn.004059c0
mov ecx, dword [ebp - 0x234]
or esi, 0xffffffff
mov eax, dword [ecx]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
test eax, eax
je 0x4069d2
add ecx, eax
mov eax, esi
mov dword [ebp - 0x234], ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406996
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4069b4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
mov ebx, dword [eax + 8]
lea edi, [eax + 0xc]
shr ebx, 1
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x406a2e
jmp 0x4063a6
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4069e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x406a02
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0x25c]
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.00475bd4
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403360
push 0x80004005
call fcn.00403360
call fcn.00403730
int3