Function at 0x4033f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [0x43f194]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x884], eax
lea eax, [esp + 0x678]
push esi
push eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
call fcn.004115e7
lea ecx, [esp + 0x228]
push esi
push ecx
call fcn.004115e7
lea edx, [esp + 0x688]
push 0x4301fc
push edx
call fcn.004115bd
add esp, 0x18
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x403480
xor eax, eax
mov ecx, dword [esp + 0x884]
call fcn.00411bef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
lea edx, [esp + 0x458]
push 0x4301f8
push edx
call fcn.00411c3d
add esp, 0xc
test eax, eax
je 0x403629
push 1
lea eax, [esp + 0x458]
push 0x4301f0
push eax
call fcn.00411c3d
add esp, 0xc
test eax, eax
je 0x403629
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004115e7
lea eax, [esp + 0x20]
push 0x4301a0
push eax
call fcn.004115bd
lea ecx, [esp + 0x464]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004115bd
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x403525
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004033f0
jmp 0x4035b5
lea edx, [esp + 0x454]
push edx
mov ecx, 0x442370
call fcn.00402000
push 0x80
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov ebx, eax
jne 0x403599
cmp ebx, 2
je 0x403599
push 4
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ecx, 0x442370
je 0x403592
push str._:_file_deleted_r_n
call fcn.00402000
mov dword [0x442358], 1
jmp 0x4035a8
push str._:_failed_to_delete_file_r_n
jmp 0x4035a3
push str._:_file_deleted_r_n
mov ecx, 0x442370
call fcn.00402000
mov ecx, dword [esp + 0x10]
call fcn.00402ba0
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x428]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x4035df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
je 0x403688
mov edx, dword [edi + 0x90]
push 0
push 0
push 0x408
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0x5a
je 0x403618
mov eax, dword [edi + 0x90]
push 0
push 0
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x4036e6
mov esi, dword [esp + 0x14]
jmp 0x403480
lea ecx, [esp + 0x428]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403480
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov ebx, eax
jne 0x4036e6
cmp ebx, 2
je 0x4036e6
push 4
push esi
lea ecx, [esp + 0x228]
push ecx
jmp 0x4036d2
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov ebx, eax
jne 0x4036e6
cmp ebx, 2
je 0x4036e6
push 4
push esi
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4036e6
mov dword [0x442358], 1
mov ecx, dword [esp + 0x884]
mov eax, ebx
call fcn.00411bef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4