Function at 0x415f20
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433990
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x445008]
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 edi, ecx
cmp dword [edi + 0x18], 0
je 0x41624e
cmp dword [edi + 0x20], 0
je 0x41624e
lea esi, [edi + 8]
mov ecx, esi
call fcn.004166d0
test al, al
jne 0x41624e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
push esi
mov dword [ebp - 0xa4], 4
mov dword [ebp - 0xa0], 0x2d
call fcn.00402b90
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415210
mov ecx, dword [ebp - 0x88]
cmp ecx, 8
jb 0x415fef
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415fe5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41626a
push ecx
push edx
call fcn.004205b6
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x9c]
push esi
mov dword [ebp - 0xa4], 2
mov dword [ebp - 0xa0], 0x2e
call fcn.00402b90
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415210
mov ecx, dword [ebp - 0x88]
cmp ecx, 8
jb 0x416068
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41605e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41626f
push ecx
push edx
call fcn.004205b6
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.00414ea0
cmp dword [ebp - 0x30], 0
je 0x416246
cmp dword [ebp - 0x18], 0
je 0x416246
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41608e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4160a2
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4160b4
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41623e
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x80]
mov edx, ebx
cmp eax, 3
jne 0x4160ec
call fcn.00416c10
jmp 0x4160f5
push eax
call fcn.004167c0
add esp, 4
push ebx
mov byte [ebp - 0x81], al
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 0x81], 0
je 0x41623e
mov edx, dword [esi + 0x10]
mov eax, SysReAllocString
mov ebx, dword [0x459714]
sub eax, edx
cmp eax, ebx
jb 0x416274
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x416131
mov ecx, dword [esi]
cmp dword [0x459718], 8
mov eax, 0x459704
push ebx
cmovae eax, dword [0x459704]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x9c]
call fcn.004087d0
cmp dword [ebp - 0x88], 8
lea ecx, [ebp - 0x9c]
mov eax, esi
cmovae ecx, dword [ebp - 0x9c]
cmp dword [esi + 0x14], 8
jb 0x416178
mov eax, dword [esi]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov ecx, dword [ebp - 0x88]
test eax, eax
setne al
mov byte [edi + 0x24], al
cmp ecx, 8
jb 0x4161ca
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4161c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416279
push ecx
push edx
call fcn.004205b6
add esp, 8
cmp byte [edi + 0x24], 0
je 0x41623e
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc0]
push esi
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 0x29
call fcn.00402b90
lea ecx, [ebp - 0xc8]
call fcn.00415210
mov ecx, dword [ebp - 0xac]
cmp ecx, 8
jb 0x41623e
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416234
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41627e
push ecx
push edx
call fcn.004205b6
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.00414830
lea ecx, [ebp - 0x80]
call fcn.00415180
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.00420573
mov esp, ebp
pop ebp
ret
call fcn.0042552f
call fcn.0042552f
call fcn.00401640
call fcn.0042552f
call fcn.0042552f
int3