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

Disassembly:
push 0xffffffffffffffff
push 0x4a8131
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
push ebp
push esi
push edi
mov ebp, 0x4aa684
push 0x80
mov dword [esp + 0x34], ebp
call fcn.004985f0
xor ebx, ebx
mov edi, 0x1f
mov esi, 0x40
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
push 0x80
mov dword [esp + 0x2c8], ebx
mov dword [esp + 0x18], ebp
call fcn.004985f0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x2cc]
lea eax, [esp + 0xb8]
mov edi, 1
push eax
push esi
mov byte [esp + 0x2cc], 1
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], edi
call fcn.0043c7b0
add esp, 8
push esi
call fcn.0043d350
add esp, 4
lea ecx, [esp + 0x1bc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0xb7]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x43d861
lea eax, [esp + 0xb8]
push 0x4be838
push eax
call esi
lea ecx, [esp + 0xb8]
push str.descript.ion
push ecx
call esi
push edi
lea ecx, [esp + 0x60]
call fcn.00497870
mov edx, dword [0x4b9500]
lea eax, [esp + 0xb8]
push edx
push 0x21
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x2d0], 2
call fcn.00497970
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x64], 6
je 0x43d97a
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.00497950
lea ecx, [esp + 0x68]
call fcn.004977d0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x2c4], 0
cmp eax, ebx
mov dword [esp + 0x14], ebp
je 0x43d90b
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x43d90b
cmp esi, eax
jge 0x43d8f7
cmp esi, ebx
jl 0x43d8f7
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
jmp 0x43d8f9
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x43d8ea
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00498600
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c4], 0xffffffff
mov dword [esp + 0x30], ebp
je 0x43de04
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, ebx
jle 0x43de04
cmp esi, eax
jge 0x43d952
cmp esi, ebx
jl 0x43d952
mov edx, dword [esp + 0x34]
mov eax, dword [edx + esi*4]
jmp 0x43d954
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x43d945
mov eax, dword [esp + 0x34]
push eax
call fcn.00498600
add esp, 4
xor eax, eax
jmp 0x43e0e2
push 0x1388
mov dword [esp + 0x54], ebx
call fcn.004985f0
mov ecx, dword [esp + 0x60]
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x64], 6
jne 0x43dbeb
lea ecx, [esp + 0x5c]
call fcn.004976c0
cmp al, 0x22
mov byte [ebx], al
jne 0x43d9ce
push 0x22
push 0x101
push ebx
lea ecx, [esp + 0x68]
call fcn.004975c0
lea ecx, [esp + 0x5c]
call fcn.004976c0
jmp 0x43d9e2
push 0x20
lea eax, [ebx + 1]
push 0x101
push eax
lea ecx, [esp + 0x68]
call fcn.004975c0
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x64], 1
jne 0x43dbeb
push ebx
call fcn.0043c610
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
je 0x43da82
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x43da6e
mov eax, dword [esp + 0x44]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004985f0
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov ebp, eax
add esp, 4
lea ecx, [edx*4 + 4]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00498600
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
add esp, 4
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1bc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edx, dword [esp + 0x50]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x5c]
inc esi
or edx, esi
mov dword [esp + 0x50], edx
call fcn.004976c0
cmp eax, 0x20
jne 0x43dabe
lea ecx, [esp + 0x5c]
call fcn.004976c0
cmp eax, 0x20
je 0x43dab0
cmp eax, 0xffffffff
je 0x43dacd
push eax
lea ecx, [esp + 0x60]
call fcn.00497450
push 0xa
push 0x1387
push ebx
lea ecx, [esp + 0x68]
call fcn.004975c0
lea ecx, [esp + 0x5c]
call fcn.004976c0
push 0xa
push ebx
call fcn.00498920
add esp, 8
test eax, eax
je 0x43daf9
mov byte [eax], 0
test esi, esi
je 0x43db4d
mov esi, dword [esp + 0x2d0]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004985f0
mov ebx, eax
mov eax, dword [esp + 0x2dc]
add esp, 4
test eax, eax
je 0x43db2c
push ebx
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
jmp 0x43db34
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
je 0x43dbd5
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x43dbc1
jmp 0x43db6b
push ebx
call fcn.0043c610
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43dbd5
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x43dbc1
mov edx, dword [esp + 0x28]
add eax, edx
lea eax, [eax*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebp, eax
add esp, 4
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 + 0x18]
push eax
call fcn.00498600
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 4
add eax, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x64], 7
je 0x43d9a3
lea ecx, [esp + 0x5c]
call fcn.004979e0
push ebx
call fcn.00498600
mov eax, dword [esp + 0x54]
add esp, 4
test eax, eax
jne 0x43dd27
lea eax, [esp + 0x1bc]
push eax
call fcn.0043c610
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x43dc98
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x43dc84
mov edx, dword [esp + 0x44]
add eax, edx
lea eax, [eax*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov ebx, eax
add esp, 4
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 + 0x34]
push eax
call fcn.00498600
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
add esp, 4
add eax, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [edx + eax*4], ebp
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x2d0]
push ecx
call fcn.0043c610
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x43dd27
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x43dd13
mov ecx, dword [esp + 0x28]
add eax, ecx
lea edx, [eax*4 + 4]
push edx
call fcn.004985f0
mov ebx, eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, ebx
lea ecx, [eax*4 + 4]
add esp, 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 + 0x18]
push eax
call fcn.00498600
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 4
add eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [edx + eax*4], ebp
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x2d4]
lea edx, [esp + 0xb8]
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
push edx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43de18
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.00497950
lea ecx, [esp + 0x68]
call fcn.004977d0
mov eax, dword [esp + 0x24]
mov edi, 0x4aa684
test eax, eax
mov byte [esp + 0x2c4], 0
mov dword [esp + 0x14], edi
je 0x43ddb1
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x43ddb1
cmp esi, eax
jge 0x43dd9d
test esi, esi
jl 0x43dd9d
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
jmp 0x43dd9f
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x43dd90
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00498600
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x2c4], 0xffffffff
mov dword [esp + 0x30], edi
je 0x43de04
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x43de04
cmp esi, eax
jge 0x43ddf0
test esi, esi
jl 0x43ddf0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + esi*4]
jmp 0x43ddf2
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x43dde3
mov eax, dword [esp + 0x34]
push eax
call fcn.00498600
add esp, 4
xor eax, eax
jmp 0x43e0e2
mov ecx, dword [esp + 0x38]
xor edi, edi
test ecx, ecx
jle 0x43df4d
cmp edi, ecx
mov edx, dword [esp + 0x34]
jge 0x43de37
test edi, edi
jl 0x43de37
mov eax, dword [edx + edi*4]
jmp 0x43de39
xor eax, eax
test eax, eax
je 0x43df4d
cmp edi, ecx
jge 0x43de4e
test edi, edi
jl 0x43de4e
mov eax, dword [edx + edi*4]
jmp 0x43de50
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov eax, dword [esp + 0x38]
cmp edi, eax
jge 0x43de6e
test edi, edi
jl 0x43de6e
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + edi*4]
jmp 0x43de70
xor eax, eax
push 0x20
push eax
call fcn.00498920
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
mov byte [esp + 0x13], 0x22
neg esi
je 0x43de98
lea edx, [esp + 0x13]
push 1
push edx
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp edi, dword [esp + 0x38]
jge 0x43deab
test edi, edi
jl 0x43deab
mov eax, dword [esp + 0x34]
mov eax, dword [eax + edi*4]
jmp 0x43dead
xor eax, eax
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebp
jl 0x43df4d
test esi, esi
je 0x43ded0
lea ecx, [esp + 0x13]
push 1
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
lea edx, [esp + 0x4f]
push 1
push edx
push ebx
mov byte [esp + 0x5b], 0x20
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 1
jl 0x43df4d
cmp edi, dword [esp + 0x1c]
jge 0x43defb
test edi, edi
jl 0x43defb
mov eax, dword [esp + 0x18]
mov esi, dword [eax + edi*4]
jmp 0x43defd
xor esi, esi
test esi, esi
je 0x43df17
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebp
jl 0x43df4d
mov cx, word [0x4be9a4]
mov dl, byte [0x4be9a6]
lea eax, [esp + 0x50]
push 2
push eax
push ebx
mov word [esp + 0x5c], cx
mov byte [esp + 0x5e], dl
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 2
jl 0x43df4d
mov ecx, dword [esp + 0x38]
inc edi
cmp edi, ecx
jl 0x43de28
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x43e024
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.00497950
lea ecx, [esp + 0x68]
call fcn.004977d0
mov eax, dword [esp + 0x24]
mov edi, 0x4aa684
test eax, eax
mov byte [esp + 0x2c4], 0
mov dword [esp + 0x14], edi
je 0x43dfc1
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x43dfc1
cmp esi, eax
jge 0x43dfad
test esi, esi
jl 0x43dfad
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + esi*4]
jmp 0x43dfaf
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x43dfa0
mov edx, dword [esp + 0x18]
push edx
call fcn.00498600
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x2c4], ebx
mov dword [esp + 0x30], edi
je 0x43e010
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x43e010
cmp esi, eax
jge 0x43dffc
test esi, esi
jl 0x43dffc
mov eax, dword [esp + 0x34]
mov eax, dword [eax + esi*4]
jmp 0x43dffe
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x43dfef
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00498600
add esp, 4
xor eax, eax
jmp 0x43e0e2
lea edx, [esp + 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x2d4]
test ecx, ecx
je 0x43e052
test al, 2
jne 0x43e04e
or al, 2
push eax
lea eax, [esp + 0xbc]
push eax
jmp 0x43e062
test ecx, ecx
jne 0x43e068
test al, 2
je 0x43e068
xor eax, 2
lea ecx, [esp + 0xb8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.00497950
lea ecx, [esp + 0x68]
call fcn.004977d0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x2c4], 0
test eax, eax
mov dword [esp + 0x14], 0x4aa684
je 0x43e0c0
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x43e0c0
push esi
lea ecx, [esp + 0x18]
call fcn.004035b0
push eax
call fcn.00498600
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x43e0a4
mov edx, dword [esp + 0x18]
push edx
call fcn.00498600
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c4], ebx
call fcn.004034f0
mov eax, 1
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2b8
ret