Function at 0x402558
Capabilities:
Set file attributes

Disassembly:
movzx eax, word [0x41085c]
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeec
mov ebp, 0x410cf4
add eax, dword [0x410d10]
mov esi, 0x410864
add eax, 7
push 0
push eax
mov edx, dword [ebp]
push edx
call fcn.00401600
add esp, 0xc
xor ecx, ecx
mov dword [0x410d08], ecx
push 0x74
call fcn.00401960
pop ecx
mov ebx, eax
test ebx, ebx
jg 0x4025ae
cmp dword [0x410d08], 0
je 0x4029ae
call fcn.004012ac
push 0x410ad8
push 0x410ad8
call sub.USER32.dll_OemToCharA
test byte [esi + 3], 1
je 0x4025d5
cmp dword [0x410bdc], 0
jne 0x4029ae
cmp dword [0x410d08], 0
je 0x4025ef
test ebx, ebx
jne 0x4025ef
call fcn.004066e0
test eax, eax
je 0x4029ae
movzx eax, word [esi + 3]
and eax, 2
mov dword [0x410d08], eax
push 0
mov edx, dword [0x410fb4]
sub edx, dword [esi + 7]
push edx
mov ecx, dword [ebp]
push ecx
call fcn.00401600
add esp, 0xc
xor eax, eax
mov dword [0x410fa8], eax
xor edi, edi
xor ebx, ebx
push 0
call fcn.0040186c
pop ecx
test eax, eax
je 0x402630
test byte [esi + 3], 1
je 0x40263e
mov ebx, dword [0x410bdc]
test ebx, ebx
je 0x402969
test byte [esi + 3], 4
je 0x40266b
cmp byte [0x410f1c], 0
jne 0x40266b
push 0
mov eax, dword [0x4108b4]
push sym.SFX.exe_GetPasswordDlgProc
push eax
mov edx, dword [0x4108ac]
push 0x40e4af
push edx
call sub.USER32.dll_DialogBoxParamA
xor eax, eax
push esi
or ecx, 0xffffffff
mov edi, 0x410bf0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [esp + 0x14]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x410ad8
lea eax, [esp + 0x14]
push eax
call fcn.004068d8
mov edi, ebx
add esp, 8
cmp edi, 1
mov al, byte [esi + 0x18]
sbb edi, edi
neg edi
cmp al, 0x14
jb 0x4026b9
cmp al, 0x14
jbe 0x4026c5
xor edi, edi
mov dword [0x40e1fc], 1
mov eax, dword [esi + 0x1c]
push eax
call fcn.004012a0
pop ecx
test eax, eax
jne 0x402593
mov edx, dword [esi + 0x1c]
push edx
call fcn.00401294
pop ecx
test eax, eax
je 0x402751
test ebx, ebx
jne 0x402593
mov ecx, dword [esi + 0x1c]
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0040107c
add esp, 8
inc eax
jne 0x402593
cmp dword [0x40f710], 2
jne 0x402593
lea edx, [esp + 0x10]
push edx
call fcn.004065fc
pop ecx
mov ecx, dword [esi + 0x1c]
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0040107c
add esp, 8
inc eax
jne 0x402593
cmp dword [0x40f710], 0x23
je 0x402593
mov dword [0x40e1fc], 1
jmp 0x402593
test edi, edi
je 0x4027e0
mov eax, dword [0x4108b8]
test eax, eax
je 0x402771
push 0x410ad8
push 0
push 0xc
push eax
call sub.USER32.dll_SendMessageA
push 0x40e4bb
lea edx, [esp + 0x14]
push edx
call fcn.0040924c
add esp, 8
mov dword [0x410cf8], eax
test eax, eax
jne 0x4027e0
push 0
lea edx, [esp + 0x14]
push edx
call sub.KERNEL32.dll_SetFileAttributesA
lea ecx, [esp + 0x10]
push ecx
call fcn.00408e88
pop ecx
lea eax, [esp + 0x10]
push eax
call fcn.004065fc
pop ecx
push 0x40e4bf
lea edx, [esp + 0x14]
push edx
call fcn.0040924c
add esp, 8
mov dword [0x410cf8], eax
test eax, eax
jne 0x4027e0
push 0x40e4c3
call fcn.00404684
pop ecx
mov dword [0x40e1fc], 1
xor edi, edi
test edi, edi
jne 0x402801
cmp dword [0x410bdc], 0
je 0x402801
mov ebx, 1
mov dword [0x410fa8], 1
mov edi, 1
test edi, edi
je 0x402969
test ebx, ebx
je 0x402814
mov eax, 0x40e4cd
jmp 0x402818
lea eax, [esp + 0x10]
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x4109d4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
pop edi
mov dword [0x410fbc], eax
mov dword [0x410fb8], eax
mov dword [0x410fd4], 0xffffffff
pop esi
cmp byte [0x410f1c], 0
je 0x402872
test byte [esi + 3], 4
je 0x402872
xor edx, edx
mov dl, byte [esi + 0x18]
mov dword [0x410fdc], edx
jmp 0x40287a
xor ecx, ecx
mov dword [0x410fdc], ecx
cmp dword [0x410fdc], 0
je 0x40288e
push 0x410f1c
call fcn.00405e60
pop ecx
mov eax, dword [esi + 7]
mov dword [0x410fc8], eax
mov edx, dword [esi + 0xb]
mov dword [0x410848], edx
xor edx, edx
mov ecx, dword [ebp]
mov dword [0x410fc0], ecx
xor ecx, ecx
mov eax, dword [0x410cf8]
mov dword [0x410fc4], eax
mov dword [0x41084c], edx
mov dword [0x40e204], ecx
mov dword [0x40e1f8], ebx
cmp byte [esi + 0x19], 0x30
jne 0x4028d5
call fcn.004067a8
jmp 0x4028ec
movzx eax, word [esi + 3]
and eax, 0x10
push eax
mov edx, dword [0x40e1e8]
push edx
call fcn.00404ac8
add esp, 8
mov eax, dword [ebp]
test eax, eax
je 0x402905
push 0
mov edx, dword [0x410fb4]
push edx
push eax
call fcn.00401600
add esp, 0xc
test ebx, ebx
jne 0x40292b
mov ecx, dword [esi + 0x10]
not ecx
cmp ecx, dword [0x410fd4]
je 0x40292b
push 0x40e4ce
call fcn.00404684
pop ecx
mov dword [0x40e1fc], 3
cmp dword [0x410fa8], 1
jne 0x40293d
xor eax, eax
mov dword [0x410fa8], eax
jmp 0x402962
mov edx, dword [0x410cf8]
push edx
call fcn.00401128
pop ecx
mov ecx, dword [0x410cf8]
push ecx
call fcn.00401658
pop ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401140
pop ecx
mov byte [0x4109d4], 0
cmp dword [ebp], 0
jne 0x40297b
push 2
push 0xffffffffffffffff
call fcn.004065a4
add esp, 8
test edi, edi
jne 0x402593
cmp dword [0x410bdc], 0
jne 0x4029a6
push 0
mov edx, dword [0x410fb4]
push edx
mov ecx, dword [ebp]
push ecx
call fcn.00401600
add esp, 0xc
jmp 0x402593
test ebx, ebx
jne 0x402593
add esp, 0x114
pop ebp
pop edi
pop esi
pop ebx
ret