Function at 0x44b810
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4cb201
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
push ebx
push ebp
push esi
push edi
mov ebx, 0x4cc6f4
push 0x80
mov dword [esp + 0x40], ebx
call fcn.004be967
xor ebp, ebp
mov edi, 0x1f
mov esi, 0x40
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], esi
push 0x80
mov dword [esp + 0x2c8], ebp
mov dword [esp + 0x20], ebx
call fcn.004be967
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x2c8]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xb4]
push eax
push ecx
mov ebp, 1
push 0x100
push esi
mov byte [esp + 0x2d0], 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x14]
mov ebx, 0x5c
test eax, eax
je 0x44b8ea
mov byte [eax], 0
mov eax, dword [esp + 0x14]
cmp byte [eax - 1], bl
jne 0x44b8ea
cmp byte [eax - 2], 0x3a
je 0x44b8ea
mov byte [eax - 1], 0
push ebx
push esi
call fcn.004bea30
add esp, 8
test eax, eax
jne 0x44b907
push 0x3a
push esi
call fcn.004bea30
add esp, 8
test eax, eax
je 0x44b90a
lea esi, [eax + 1]
lea edx, [esp + 0x1b8]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0xb4]
push eax
call edi
mov cl, byte [esp + eax + 0xb3]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, bl
je 0x44b949
lea ecx, [esp + 0xb4]
push 0x4e076c
push ecx
call esi
lea edx, [esp + 0xb4]
push str.descript.ion
push edx
call esi
push ebp
lea ecx, [esp + 0x5c]
call fcn.004bdedb
mov eax, dword [0x4dc5cc]
lea ecx, [esp + 0xb4]
push eax
push 0x21
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x2cc], 2
call fcn.004bdf9f
push 0x1388
mov dword [esp + 0x18], 0
call fcn.004be967
mov edx, dword [esp + 0x5c]
mov ebx, eax
add esp, 4
mov eax, dword [edx + 4]
test byte [esp + eax + 0x60], 6
jne 0x44bca0
lea ecx, [esp + 0x58]
call fcn.004bdda0
cmp al, 0x22
mov byte [ebx], al
jne 0x44b9d7
push 0x22
push 0x101
push ebx
lea ecx, [esp + 0x64]
call fcn.004bdcdf
lea ecx, [esp + 0x58]
call fcn.004bdda0
jmp 0x44b9eb
push 0x20
lea ecx, [ebx + 1]
push 0x101
push ecx
lea ecx, [esp + 0x64]
call fcn.004bdcdf
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x60], 1
jne 0x44bca0
test ebx, ebx
je 0x44ba06
push ebx
call edi
jmp 0x44ba08
xor eax, eax
inc eax
push eax
call fcn.004be967
mov esi, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], esi
mov byte [esi], 0
je 0x44ba27
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x44baaf
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x44ba9b
mov edx, dword [esp + 0x50]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x44]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
add eax, ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [edx + eax*4], esi
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x1b8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edx, dword [esp + 0x14]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x58]
inc esi
or edx, esi
mov dword [esp + 0x14], edx
call fcn.004bdda0
cmp eax, 0x20
jne 0x44baeb
lea ecx, [esp + 0x58]
call fcn.004bdda0
cmp eax, 0x20
je 0x44badd
cmp eax, 0xffffffff
je 0x44bafa
push eax
lea ecx, [esp + 0x5c]
call fcn.004bdba6
push 0xa
push 0x1387
push ebx
lea ecx, [esp + 0x64]
call fcn.004bdcdf
lea ecx, [esp + 0x58]
call fcn.004bdda0
push 0xa
push ebx
call fcn.004bea70
add esp, 8
test eax, eax
je 0x44bb26
mov byte [eax], 0
test esi, esi
je 0x44bbdc
mov ebp, dword [esp + 0x2cc]
push ebp
call edi
inc eax
push eax
call fcn.004be967
mov esi, eax
mov eax, dword [esp + 0x2d8]
add esp, 4
mov dword [esp + 0x34], esi
test eax, eax
je 0x44bb5d
push esi
push ebp
call dword [sym.imp.USER32.dll_CharToOemA]
jmp 0x44bb65
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x44bc8e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x44bc7a
mov ecx, dword [esp + 0x2c]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004be967
mov ebp, eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
add esp, 8
add eax, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jmp 0x44bc74
test ebx, ebx
je 0x44bbe5
push ebx
call edi
jmp 0x44bbe7
xor eax, eax
inc eax
push eax
call fcn.004be967
mov esi, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], esi
mov byte [esi], 0
je 0x44bc06
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x44bc8e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x44bc7a
mov edx, dword [esp + 0x2c]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
add esp, 8
add eax, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x60], 7
je 0x44b9ac
lea ecx, [esp + 0x58]
call fcn.004bdfe1
push ebx
call fcn.004be975
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x44be2e
lea eax, [esp + 0x1b8]
test eax, eax
je 0x44bcd5
lea ecx, [esp + 0x1b8]
push ecx
call edi
jmp 0x44bcd7
xor eax, eax
inc eax
push eax
call fcn.004be967
mov ebp, eax
lea edx, [esp + 0x1bc]
add esp, 4
test edx, edx
mov byte [ebp], 0
je 0x44bd01
lea eax, [esp + 0x1b8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebp, ebp
je 0x44bd7b
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x44bd67
mov edx, dword [esp + 0x50]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x44]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
add esp, 8
add eax, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [edx + eax*4], ebp
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2cc]
test eax, eax
je 0x44bd8f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x44bd91
xor eax, eax
inc eax
push eax
call fcn.004be967
mov ebp, eax
mov eax, dword [esp + 0x2d0]
add esp, 4
test eax, eax
mov byte [ebp], 0
je 0x44bdb4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebp, ebp
je 0x44be2e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x44be1a
mov edx, dword [esp + 0x2c]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add esp, 8
add eax, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edx + eax*4], ebp
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2d0]
lea ecx, [esp + 0xb4]
neg eax
sbb eax, eax
and eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44bf1f
lea ecx, [esp + 0x64]
mov byte [esp + 0x2c0], 1
call fcn.004bdf8c
lea ecx, [esp + 0x64]
call fcn.004bde62
mov eax, dword [esp + 0x28]
mov edi, 0x4cc6f4
test eax, eax
mov byte [esp + 0x2c0], 0
mov dword [esp + 0x18], edi
je 0x44beb8
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x44beb8
cmp esi, eax
jge 0x44bea4
test esi, esi
jl 0x44bea4
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
jmp 0x44bea6
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [esp + 0x24]
add esp, 4
inc esi
cmp esi, eax
jl 0x44be97
mov eax, dword [esp + 0x1c]
push eax
call fcn.004be975
mov eax, dword [esp + 0x50]
add esp, 4
test eax, eax
mov dword [esp + 0x2c0], 0xffffffff
mov dword [esp + 0x3c], edi
je 0x44bf0b
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x44bf0b
cmp esi, eax
jge 0x44bef7
test esi, esi
jl 0x44bef7
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + esi*4]
jmp 0x44bef9
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [esp + 0x48]
add esp, 4
inc esi
cmp esi, eax
jl 0x44beea
mov edx, dword [esp + 0x40]
push edx
call fcn.004be975
add esp, 4
xor eax, eax
jmp 0x44c19b
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x44c056
cmp esi, eax
jge 0x44c056
test esi, esi
jl 0x44c056
mov eax, dword [esp + 0x40]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x44c056
xor ecx, ecx
test esi, esi
setl cl
dec ecx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
cmp esi, eax
jge 0x44bf76
test esi, esi
jl 0x44bf76
mov edx, dword [esp + 0x40]
mov eax, dword [edx + esi*4]
jmp 0x44bf78
xor eax, eax
push 0x20
push eax
call fcn.004bea70
mov edi, eax
add esp, 8
neg edi
sbb edi, edi
mov byte [esp + 0x13], 0x22
neg edi
je 0x44bfa4
mov ebp, dword [sym.imp.KERNEL32.dll__lwrite]
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call ebp
jmp 0x44bfaa
mov ebp, dword [sym.imp.KERNEL32.dll__lwrite]
cmp esi, dword [esp + 0x44]
jge 0x44bfbd
test esi, esi
jl 0x44bfbd
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + esi*4]
jmp 0x44bfbf
xor eax, eax
mov edx, dword [esp + 0x34]
push edx
push eax
push ebx
call ebp
cmp eax, dword [esp + 0x34]
jl 0x44c056
test edi, edi
je 0x44bfe0
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call ebp
lea ecx, [esp + 0x3b]
push 1
push ecx
push ebx
mov byte [esp + 0x47], 0x20
call ebp
cmp eax, 1
jl 0x44c056
cmp esi, dword [esp + 0x20]
jge 0x44c025
test esi, esi
jl 0x44c025
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + esi*4]
test edi, edi
je 0x44c025
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebp
jl 0x44c056
mov ebp, dword [sym.imp.KERNEL32.dll__lwrite]
mov ax, word [0x4e08a8]
mov cl, byte [0x4e08aa]
lea edx, [esp + 0x14]
push 2
push edx
push ebx
mov word [esp + 0x20], ax
mov byte [esp + 0x22], cl
call ebp
cmp eax, 2
jl 0x44c056
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x44bf35
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x44c11b
lea ecx, [esp + 0x64]
mov byte [esp + 0x2c0], 1
call fcn.004bdf8c
lea ecx, [esp + 0x64]
call fcn.004bde62
mov eax, dword [esp + 0x28]
mov edi, 0x4cc6f4
test eax, eax
mov byte [esp + 0x2c0], 0
mov dword [esp + 0x18], edi
je 0x44c0c1
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x44c0c1
push esi
lea ecx, [esp + 0x1c]
call fcn.0042cac0
push eax
call fcn.004be975
mov eax, dword [esp + 0x24]
add esp, 4
inc esi
cmp esi, eax
jl 0x44c0a5
mov eax, dword [esp + 0x1c]
push eax
call fcn.004be975
mov eax, dword [esp + 0x50]
add esp, 4
test eax, eax
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x3c], edi
je 0x44c107
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x44c107
push esi
lea ecx, [esp + 0x40]
call fcn.0042cac0
push eax
call fcn.004be975
mov eax, dword [esp + 0x48]
add esp, 4
inc esi
cmp esi, eax
jl 0x44c0eb
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004be975
add esp, 4
xor eax, eax
jmp 0x44c19b
lea edx, [esp + 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x2d0]
test ecx, ecx
je 0x44c145
test al, 2
jne 0x44c15b
or al, 2
push eax
lea eax, [esp + 0xb8]
push eax
jmp 0x44c155
test al, 2
je 0x44c15b
xor eax, 2
lea ecx, [esp + 0xb4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x64]
mov byte [esp + 0x2c0], 1
call fcn.004bdf8c
lea ecx, [esp + 0x64]
call fcn.004bde62
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 0
call fcn.00403b80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c0], ebx
call fcn.00403b80
mov eax, 1
mov ecx, dword [esp + 0x2b8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b4
ret