Function at 0x418ed0
Capabilities:
Set file attributes

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x43c
mov edx, dword [0x42840c]
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x450]
mov dword [esp + 0x28], 0
test edx, edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
je 0x418f11
test ebx, ebx
je 0x418f16
mov eax, 1
mov dword [0x428480], eax
xor edx, edx
mov ecx, 0x438df8
mov dword [0x439280], edx
xor eax, eax
mov dword [0x439284], eax
nop
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x418f30
test edx, 0x8080
jne 0x418f55
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, 0x438df8
test ebx, ebx
mov dword [0x439288], ecx
je 0x419010
movzx eax, byte [0x438df8]
mov dword [esp + 0x1c], 0x438df8
test al, al
je 0x418fc7
jmp 0x418f90
cmp al, 0x5c
je 0x419978
mov esi, dword [sym.imp.msvcrt.dll___mb_cur_max]
mov edi, dword [esp + 0x1c]
mov edx, dword [esi]
mov dword [esp], edi
mov dword [esp + 4], edx
call sub.msvcrt.dll_mblen
add dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x1c]
movzx eax, byte [ebp]
test al, al
jne 0x418f90
movzx eax, byte [0x438df8]
mov dword [esp + 0x1c], 0x438df8
cmp al, 0x2f
je 0x419957
mov ecx, dword [sym.imp.msvcrt.dll___mb_cur_max]
movzx edx, al
cmp dword [ecx], 1
je 0x419940
mov dword [esp + 4], 0x103
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
je 0x419010
cmp byte [0x438df9], 0x3a
je 0x4198f4
lea esi, [esi]
mov dword [esp + 4], 1
lea ecx, [esp + 0x30]
mov dword [esp], ecx
call fcn.00419bd0
test eax, eax
mov ebp, eax
mov edx, eax
jne 0x419370
mov byte [esp + 0x30], 0
test ebx, ebx
lea esi, [esp + 0x30]
jne 0x41905b
mov ebx, dword [0x428418]
test ebx, ebx
jne 0x4198d7
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4198ca
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
movzx ebx, byte [eax]
test ebx, ebx
je 0x419281
lea esi, [esi]
lea eax, [ebx - 0x20]
cmp eax, 0x5c
ja case.0x41907c.33
jmp dword [eax*4 + 0x419084]
mov byte [esi], 0
lea esi, [esp + 0x30]
mov dword [esp], esi
lea esi, [esp + 0x30]
call fcn.00419990
cld
mov edx, 0x4188d6
mov ecx, 2
mov edi, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4197c4
mov byte [esp + 0x30], 0
cmp byte [esp + 0x30], 0
jne 0x419797
mov dword [esp + 0x28], 0
lea esi, [esp + 0x30]
lea esi, [esi]
mov edx, dword [sym.imp.msvcrt.dll___mb_cur_max]
mov edi, dword [edx]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_mblen
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
movzx ebx, byte [eax]
test ebx, ebx
jne 0x419070
mov edx, dword [esp + 0x20]
test edx, edx
je 0x419281
mov ecx, dword [0x42842c]
test ecx, ecx
je 0x419730
mov dword [esp], 0x438df8
mov ebx, dword [0x439288]
mov dword [esp + 4], ebx
call fcn.0040bec0
cmp byte [eax], 0x2f
je 0x41957b
mov byte [esi], 0
mov ecx, dword [0x428448]
test ecx, ecx
jne 0x4192f3
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4192f3
mov esi, dword [esp + 0x28]
lea esi, [esi]
mov edi, dword [sym.imp.msvcrt.dll___mb_cur_max]
inc esi
movzx edx, byte [esi]
cmp dword [edi], 1
je 0x419567
mov dword [esp + 4], 4
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x4192c0
cmp byte [esi], 0
jne 0x4192f3
mov eax, dword [esp + 0x28]
mov byte [eax], 0
mov esi, dword [0x428410]
test esi, esi
jne 0x41947d
lea ebx, [esp + 0x30]
mov dword [esp], ebx
call fcn.00419990
cmp byte [esp + 0x30], 0
jne 0x41937d
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 4], 0x418db0
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
mov edx, ebp
and edx, 0xffff80ff
or edx, 0x300
nop
add esp, 0x43c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 3
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00419bd0
mov dword [esp + 4], 4
mov dword [esp], 0x438df8
call fcn.00419bd0
mov ecx, dword [0x428cb4]
test byte [ecx + 0x18], 0x20
je 0x419476
movzx edx, byte [0x43928c]
lea ebx, [esp + 0x2c]
mov word [esp + 0x2d], 0x5c3a
mov edi, dword [0x42842c]
mov byte [esp + 0x2f], 0
add dl, 0x60
test edi, edi
mov byte [esp + 0x2c], dl
je 0x419420
mov dword [esp + 4], 0x438df8
mov dword [esp], ebx
call sub.KERNEL32.dll_SetVolumeLabelA
sub esp, 8
test eax, eax
je 0x419407
mov edx, ebp
and edx, 0xffff80ff
or edx, 0x200
jmp 0x419370
mov dword [esp + 4], 0x418df0
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
jmp 0x419340
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x418e16
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
jmp 0x4193dd
mov edx, ebp
jmp 0x419370
movzx edi, word [0x438d16]
mov edx, dword [0x438cf4]
mov dword [esp + 4], edi
mov dword [esp], edx
call fcn.00411a20
test eax, eax
je 0x419301
add eax, 8
mov dword [esp], eax
call fcn.0040b9b0
mov ecx, dword [esp + 0x24]
mov ebx, eax
test ecx, ecx
je 0x4194e9
mov esi, dword [esp + 0x24]
mov edi, dword [sym.imp.msvcrt.dll___mb_cur_max]
inc esi
movzx edx, byte [esi]
cmp dword [edi], 1
je 0x419551
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x4194b7
mov edx, dword [esp + 0x24]
add edx, 4
cmp esi, edx
je 0x419542
test ebx, ebx
js 0x4194f2
mov ebx, 0xffd00
lea ecx, [esp + 0x30]
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x4194f6
test edx, 0x8080
jne 0x41951b
shr edx, 0x10
add ecx, 2
mov dword [esp + 4], 0x418e2a
add dl, dl
sbb ecx, 3
sar ebx, 8
and ebx, 0xfff
mov dword [esp + 8], ebx
mov dword [esp], ecx
call sub.msvcrt.dll_sprintf
jmp 0x419301
mov eax, dword [esp + 0x24]
cmp byte [eax + 4], 0
jne 0x4194e9
mov byte [eax], 0
jmp 0x4194e9
mov edi, dword [sym.imp.msvcrt.dll__pctype]
mov ecx, dword [edi]
movzx eax, word [ecx + edx*2]
and eax, 0x80
jmp 0x4194da
mov ebx, dword [sym.imp.msvcrt.dll__pctype]
mov ecx, dword [ebx]
movzx eax, word [ecx + edx*2]
and eax, 4
jmp 0x4192e3
mov dword [esp + 4], 4
mov dword [esp], 0x438df8
call fcn.00419bd0
mov esi, dword [0x439280]
test esi, esi
je 0x419693
mov eax, dword [0x42842c]
test eax, eax
je 0x419641
mov edi, dword [0x428cb4]
mov eax, dword [edi + 0x14]
test al, 0x6f
jne 0x4195ca
mov edx, ebp
and edx, 0xffff80ff
or edx, 0x1000
jmp 0x419370
mov dword [esp], 0x438df8
and eax, 0x7f
mov dword [esp + 4], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
test eax, eax
jne 0x4195b7
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov esi, eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x418e30
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
jmp 0x4195b7
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 4], 0x418e65
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
jmp 0x4195aa
cmp dword [0x42847c], 1
jne 0x4193f4
mov edx, dword [0x428cb4]
mov eax, dword [edx + 0x14]
test al, 0x6f
je 0x4193f4
mov dword [esp], 0x438df8
and eax, 0x7f
mov dword [esp + 4], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
test eax, eax
jne 0x4193f4
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov edi, eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x418e30
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
jmp 0x4193f4
mov dword [esp + 4], 0x430cb8
mov dword [esp], 0x438df8
call fcn.00409b40
mov dword [esp + 8], eax
mov dword [esp + 4], 0x418e90
mov dword [esp], 0x428cb8
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x428cb8
mov dword [esp], 0x4283f0
call dword [0x439258]
test ebp, 0xffff80ff
jne 0x419281
and ebp, 0x7f00
or ebp, 1
jmp 0x419281
mov dword [esp + 4], 2
lea ebp, [esp + 0x30]
mov dword [esp], ebp
call fcn.00419bd0
mov ebp, eax
and eax, 0x7f00
mov edx, ebp
cmp eax, 0x100
jle 0x419230
jmp 0x419370
mov ecx, dword [0x428454]
test ecx, ecx
jne 0x419225
cld
mov ebx, 0x4188d8
mov ecx, 3
lea esi, [esp + 0x30]
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x419225
mov byte [esp + 0x30], 0
mov dword [esp + 0x20], 1
jmp 0x419225
mov edi, dword [0x428430]
test edi, edi
je 0x419810
mov byte [esi], 0x5f
inc esi
jmp 0x419240
mov dword [esp], 0x438df8
jmp 0x4606cb
mov dword [esp + 0x24], esi
mov byte [esi], 0x2c
mov esi, dword [esp + 0x24]
jmp 0x41980a
mov dword [esp + 0x28], esi
mov byte [esi], 0x3b
jmp 0x41980a
mov edx, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [edx], 1
je 0x4198b7
mov dword [esp + 4], 0x157
mov dword [esp], ebx
call sub.msvcrt.dll__isctype
mov edx, dword [sym.imp.msvcrt.dll___mb_cur_max]
test eax, eax
jne 0x419876
cmp ebx, 0x7e
jbe 0x419246
mov ecx, dword [edx]
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.msvcrt.dll_mblen
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [sym.imp.msvcrt.dll___mb_cur_max]
mov ebx, dword [edx]
mov dword [esp], esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_mblen
add esi, eax
jmp 0x419240
mov ecx, dword [sym.imp.msvcrt.dll__pctype]
mov edi, dword [ecx]
movzx eax, word [edi + ebx*2]
and eax, 0x157
jmp 0x419869
mov dword [esp + 0x1c], 0x438df8
jmp 0x41905b
mov dword [esp + 4], 0x2f
mov dword [esp], 0x438df8
call fcn.0040bf70
mov dword [esp + 0x1c], eax
jmp 0x41904b
movzx edx, byte [0x438df8]
mov esi, 1
cmp byte [0x438dfa], 0x2f
mov dword [0x439284], esi
lea esi, [esp + 0x32]
mov byte [esp + 0x30], dl
mov byte [esp + 0x31], 0x3a
mov dword [esp + 0x1c], 0x438dfa
je 0x41992c
mov byte [esi], 0
jmp 0x419010
mov byte [esp + 0x32], 0x2f
lea esi, [esp + 0x33]
mov dword [esp + 0x1c], 0x438dfb
jmp 0x419924
mov edi, dword [sym.imp.msvcrt.dll__pctype]
mov ebp, dword [edi]
movzx eax, word [ebp + edx*2]
and eax, 0x103
jmp 0x418ff9
mov byte [esp + 0x30], 0x2f
mov eax, 1
mov dword [0x439284], eax
mov byte [esp + 0x31], 0
mov dword [esp + 0x1c], 0x438df9
jmp 0x419010
mov ecx, dword [esp + 0x1c]
mov byte [ecx], 0x2f
jmp 0x418f98