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

Disassembly:
mov eax, 0x4b60e0
call fcn.00483228
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x1c]
mov edi, 0x4e8288
lea ebx, [esi + 0x20]
mov ecx, edi
push ebx
push eax
call fcn.0044e2fe
and dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0049d8d8
lea ebx, [esi + 0x24]
lea eax, [esi + 0x60]
push eax
mov ecx, ebx
call fcn.0049d9c5
lea eax, [esi + 0x20]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004633b6
add esp, 0xc
lea eax, [esi + 0x28]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 1
call fcn.0044e2fe
lea edi, [esi + 0x28]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0049d8d8
push 0x4e7e70
lea ecx, [ebp - 0x10]
call fcn.0049d946
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebp + 0x14], eax
je 0x46b755
cmp dword [ebp + 0x18], eax
push eax
push ecx
mov ecx, esp
je 0x46b68f
mov dword [ebp + 0x18], esp
push 0x4df524
call fcn.0049d946
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.0049d64d
mov byte [ebp - 4], 3
call fcn.0044c966
add esp, 0xc
test eax, eax
push 0x4dd640
jne 0x46b57d
lea ecx, [ebp + 0x18]
call fcn.0049d946
lea eax, [ebp + 0x18]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.004633b6
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0049d8d8
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0049d8d8
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447c52
add esp, 4
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0044b4b5
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0049d9c5
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0049d8d8
push ecx
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push ebx
call fcn.0049d64d
push edi
call fcn.00447c52
add esp, 4
mov byte [ebp - 4], 9
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0044b4b5
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.0049d9c5
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
jmp 0x46b7e7
lea ecx, [ebp + 0x18]
call fcn.0049d946
lea eax, [esi + 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004633b6
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.0049d8d8
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0049d8d8
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447c52
add esp, 4
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0044b4b5
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.0049d9c5
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0049d8d8
push ecx
lea eax, [esi + 0x2c]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447c52
add esp, 4
mov byte [ebp - 4], 0xf
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
lea eax, [esi + 0x2c]
push eax
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0044b4b5
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.0049d9c5
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
jmp 0x46b7e7
mov dword [ebp + 0x18], esp
push 0x4df524
call fcn.0049d946
push ecx
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.0049d64d
mov byte [ebp - 4], 3
call fcn.0044c966
add esp, 0xc
test eax, eax
push 0x4dd640
jne 0x46b703
lea ecx, [ebp + 0x18]
call fcn.0049d946
lea eax, [ebp + 0x18]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x12
call fcn.004633b6
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x12
call fcn.0049d8d8
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
jmp 0x46b7e7
lea ecx, [ebp + 0x18]
call fcn.0049d946
lea edi, [esi + 0x2c]
lea eax, [ebp + 0x18]
push edi
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x14
push eax
call fcn.004633b6
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x15
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x14
call fcn.0049d8d8
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0049d8d8
push edi
mov ecx, ebx
call fcn.0049d9c5
jmp 0x46b7ec
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004633b6
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0049d8d8
cmp dword [ebp + 0x18], 0
je 0x46b7ec
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447c52
add esp, 4
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0044b4b5
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x18
call fcn.0049d9c5
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
call fcn.0049d8d8
cmp dword [esi + 0x78], 0
je 0x46b804
cmp dword [ebp + 0x10], 0
je 0x46b804
mov dword [ebp + 0x18], 8
jmp 0x46b9dd
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.0049d64d
call fcn.00446e8e
test eax, eax
pop ecx
jne 0x46b829
mov dword [ebp + 0x18], 0xe
jmp 0x46b9dd
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp + 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
pop ecx
call fcn.00446d96
test eax, eax
pop ecx
jne 0x46b88e
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.0049d64d
lea eax, [ebp + 0x18]
push eax
call fcn.00447289
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, eax
lea ecx, [ebp + 0x18]
neg ebx
sbb bl, bl
inc bl
call fcn.0049d8d8
test bl, bl
je 0x46b88e
push 0xf
pop eax
jmp 0x46b9e0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call edi
cmp dword [ebp + 0x14], 0
push 1
pop ecx
mov edx, ecx
je 0x46b8b7
xor edx, edx
cmp dword [esi + 0x44], 0
je 0x46b8c5
mov eax, dword [esi + 0x68]
cmp eax, 6
jne 0x46b8ca
mov eax, dword [esi + 0x68]
mov ecx, eax
cmp dword [ebp + 0x14], 0
je 0x46b8ee
cmp eax, 6
jne 0x46b8ee
xor ebx, ebx
push edx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004676f7
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x46b905
push edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004676f7
add esp, 0x10
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov eax, dword [ebp - 0x18]
cmp eax, 0xd
mov dword [ebp + 0x18], eax
jge 0x46b9cf
cmp dword [ebp + 0x14], ebx
jne 0x46b923
cmp dword [esi + 0x68], 6
je 0x46b9dd
cmp dword [esi + 0x7c], ebx
je 0x46b945
cmp dword [ebp + 0x14], ebx
jne 0x46b945
cmp dword [esi + 0x78], ebx
je 0x46b937
cmp dword [ebp + 0x10], ebx
jne 0x46b945
cmp dword [esi + 0x44], ebx
jne 0x46b945
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004513df
test byte [esi + 0x6c], 0x64
je 0x46b968
cmp dword [ebp + 0x14], ebx
jne 0x46b968
push 1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.0049d64d
call fcn.0045c864
pop ecx
pop ecx
cmp dword [ebp - 0x18], 9
jge 0x46b99a
lea edi, [esi + 0x58]
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004631ed
pop ecx
test eax, eax
pop ecx
jne 0x46b9dd
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004631ed
pop ecx
test eax, eax
pop ecx
jne 0x46b9dd
mov dword [ebp + 0x18], 0x10
jmp 0x46b9dd
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.0049d64d
lea eax, [ebp + 0x14]
push eax
call fcn.0044ce2a
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x19
call fcn.0049897b
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.0049d8d8
jmp 0x46b9dd
cmp dword [ebp - 0x1c], 0xffffffff
je 0x46b9dd
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
lea ecx, [ebp - 0x10]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14