Function at 0x40d070
Capabilities:
Get file attributes
Set current directory

Disassembly:
sub esp, 0x5a4
push ebx
push ebp
push esi
xor ebp, ebp
xor ebx, ebx
push edi
or esi, 0xffffffff
mov eax, dword [0x41eaf4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push esi
push 0x100c
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jle 0x40d0e0
mov edx, dword [0x41eaf4]
lea ecx, [esp + 0x18]
push ecx
push ebp
push 0x1005
push edx
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
call edi
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x40d081
mov edi, dword [eax]
cmp edi, ebp
je 0x40d081
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
jmp 0x40d081
inc ebx
je 0x40d2f4
push ebx
call fcn.00412b14
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
or ebp, 0xffffffff
jmp 0x40d103
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x41eaf4]
push 2
push ebp
push 0x100c
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jle 0x40d194
mov edx, dword [0x41eaf4]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x1005
push edx
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0
call edi
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x40d0fd
mov eax, dword [ebx]
test eax, eax
je 0x40d0fd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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, dword [ebx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [edx + ecx + 1]
mov dword [esp + 0x10], ecx
jmp 0x40d0fd
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x268]
lea ecx, [esp + 0x4b0]
push eax
mov byte [edx], 0
lea edx, [esp + 0x2ac]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3b4]
push edx
push eax
push ecx
call fcn.00413178
lea edi, [esp + 0x3c0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x74]
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]
lea edi, [esp + 0x2bc]
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 + 0x74]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040b910
add esp, 0x18
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x5b8]
lea edx, [esp + 0x60]
lea eax, [esp + 0x164]
push edx
push eax
push ecx
call fcn.0040b950
lea edx, [esp + 0x170]
push edx
call fcn.0040b910
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x174]
push eax
push esi
call fcn.00419ee0
add esp, 0x18
test eax, eax
je 0x40d295
lea ecx, [esp + 0x164]
lea edx, [esp + 0x60]
push ecx
push edx
call fcn.00419ee0
add esp, 8
mov word [esp + 0x50], 0x40
test eax, eax
jne 0x40d29c
mov word [esp + 0x50], 0x48
mov eax, dword [0x41eae8]
mov ecx, dword [esp + 0x5bc]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
and ecx, 0xffff
lea edx, [esp + 0x164]
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x40d2e7
lea ecx, [esp + 0x60]
push eax
push ecx
push 1
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
test esi, esi
je 0x40d2f4
push esi
call fcn.00412b88
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5a4
ret