Function at 0x402619
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xef4
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xef0], edx
push 0x1fc
lea eax, [ebp - 0x290]
mov dword [ebp - 0xeec], ebx
mov edi, ecx
mov dword [ebp - 0xedc], ebx
push ebx
push eax
mov dword [ebp - 0xee8], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc90]
mov esi, 0x1fe
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xecc], ebx
lea eax, [ebp - 0x890]
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x90]
push 0x88
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xee0], ebx
lea eax, [ebp - 0x490]
mov dword [ebp - 0xec4], ebx
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x690]
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa90]
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xed4], ebx
lea ecx, [esi + 0x32]
lea eax, [ebp - 0xec0]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4026f2
push 0xff
mov edx, 0x4011ec
lea ecx, [ebp - 0x890]
call fcn.0040e35d
push 8
mov edx, 0x40110c
lea ecx, [ebp - 0xec0]
call fcn.0040e2ff
lea eax, [ebp - 0xeec]
mov dword [ebp - 0xea0], 0x401114
push 8
mov edx, 0x40110c
mov dword [ebp - 0xeb8], 0xa
lea ecx, [ebp - 0xe70]
mov dword [ebp - 0xea8], 1
mov dword [ebp - 0xe94], eax
call fcn.0040e2ff
xor eax, eax
mov dword [ebp - 0xe50], 0x4011f0
inc eax
mov dword [ebp - 0xe60], 0x12000
push 8
mov edx, 0x40110c
mov dword [ebp - 0xe5c], ebx
lea ecx, [ebp - 0xe20]
mov dword [ebp - 0xe68], eax
mov dword [ebp - 0xe58], eax
call fcn.0040e2ff
xor eax, eax
mov dword [ebp - 0xe00], 0x4011f4
inc eax
mov dword [ebp - 0xe10], 0x12000
push 8
mov edx, 0x40110c
mov dword [ebp - 0xe0c], ebx
lea ecx, [ebp - 0xdd0]
mov dword [ebp - 0xe18], eax
mov dword [ebp - 0xe08], eax
call fcn.0040e2ff
xor eax, eax
mov dword [ebp - 0xdb0], 0x4011f8
inc eax
mov dword [ebp - 0xdc0], 0x10
mov dword [ebp - 0xdc8], eax
lea ecx, [ebp - 0xd80]
mov dword [ebp - 0xdb8], eax
mov edx, 0x40110c
lea eax, [ebp - 0x890]
mov dword [ebp - 0xdbc], ebx
push 8
mov dword [ebp - 0xda4], eax
mov dword [ebp - 0xda0], 0xfe
call fcn.0040e2ff
xor eax, eax
mov dword [ebp - 0xd60], 0x4011fc
inc eax
mov dword [ebp - 0xd70], 0x2040
mov dword [ebp - 0xd78], eax
lea ecx, [ebp - 0xd30]
mov dword [ebp - 0xd68], eax
mov edx, 0x40110c
lea eax, [ebp - 0x90]
mov dword [ebp - 0xd6c], ebx
push 8
mov dword [ebp - 0xd54], eax
mov dword [ebp - 0xd50], 0x44
call fcn.0040e2ff
lea eax, [ebp - 0xedc]
mov dword [ebp - 0xd10], 0x40113c
push 8
mov edx, 0x40110c
mov dword [ebp - 0xd20], 0x20000
lea ecx, [ebp - 0xce0]
mov dword [ebp - 0xd1c], ebx
mov dword [ebp - 0xd28], 0xa
mov dword [ebp - 0xd18], 1
mov dword [ebp - 0xd04], eax
call fcn.0040e2ff
mov dword [ebp - 0xcc0], 0x401200
mov dword [ebp - 0xcd0], 0x82000
mov dword [ebp - 0xccc], ebx
lea eax, [ebp - 0xee0]
mov dword [ebp - 0xcd8], 3
mov dword [ebp - 0xcb4], eax
lea eax, [ebp - 0x490]
mov dword [ebp - 0xcc8], 1
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x402901
mov edx, dword [ebp - 0xef0]
lea eax, [ebp - 0xec0]
push ecx
push eax
push 7
push ebx
mov ecx, edi
call fcn.00411190
test eax, eax
jne 0x402941
push 2
call fcn.00411dc9
pop ecx
mov edx, 0x20001
mov ecx, eax
call fcn.0040d7c6
xor eax, eax
inc eax
jmp 0x403172
mov edi, dword [ebp - 0xdf4]
mov ebx, dword [ebp - 0xe44]
mov dword [ebp - 0xee4], ebx
mov dword [ebp - 0xed8], edi
test edi, edi
jne 0x402973
mov ecx, 0x1fc
call fcn.0040ebd3
mov edi, eax
mov dword [ebp - 0xed8], edi
test edi, edi
je 0x402925
push ecx
xor edx, edx
mov ecx, ebx
call fcn.0040df49
push ecx
xor edx, edx
mov ecx, edi
call fcn.0040df49
cmp dword [ebp - 0xedc], 1
jne 0x4029b6
cmp dword [ebp - 0xee8], 3
jbe 0x4029b6
push 4
pop ecx
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
jmp 0x402939
cmp dword [ebp - 0xe54], 0
je 0x402a02
mov ecx, ebx
call fcn.0040e3f2
test eax, eax
jne 0x402a02
mov ecx, 0x30e
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
lea ecx, [ebp - 0xee4]
call fcn.0040eb2f
lea ecx, [ebp - 0xed8]
call fcn.0040eb2f
jmp 0x402939
mov eax, dword [ebp - 0xe04]
test eax, eax
je 0x402a24
mov ecx, edi
call fcn.0040e3f2
test eax, eax
jne 0x402a1e
mov ecx, 0x30f
jmp 0x4029cf
mov eax, dword [ebp - 0xe04]
cmp dword [ebp - 0xe54], 0
jne 0x402a3b
test eax, eax
je 0x402a3f
mov ecx, 0x30b
jmp 0x40299c
test eax, eax
jne 0x402a52
cmp dword [ebp - 0xdb4], 0
je 0x402a52
mov ecx, 0x30c
jmp 0x40299c
cmp dword [ebp - 0xedc], 0
mov ecx, ebx
je 0x402a95
call fcn.0040cc0e
cmp eax, 1
je 0x403157
push 0x57
pop edi
mov ecx, edi
call fcn.0040d995
push 1
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
inc edi
cmp edi, 0x69
jbe 0x402a6e
xor esi, esi
jmp 0x40315a
call fcn.0040f9d8
test eax, eax
je 0x402ace
call fcn.0040f91b
test eax, eax
jne 0x402ace
mov ecx, 0xe87
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
call fcn.0040d859
jmp 0x402939
mov ecx, ebx
call fcn.0040f9d8
test eax, eax
jne 0x402b3e
cmp dword [ebp - 0xdb4], eax
je 0x402b0d
push eax
push 1
mov edx, 0x4011ec
lea ecx, [ebp - 0x890]
call fcn.0040e401
test eax, eax
jne 0x402b04
mov dword [ebp - 0xecc], 1
jmp 0x402b3e
cmp dword [ebp - 0xdb4], 0
jne 0x402b3e
cmp dword [ebp - 0xe54], 0
jne 0x402b1f
cmp dword [ebp - 0xe04], 0
je 0x402b3e
push 0xfe
mov edx, 0x401104
mov dword [ebp - 0xecc], 1
lea ecx, [ebp - 0x890]
call fcn.0040e35d
push 2
mov esi, 0x401208
push esi
push ebx
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpNW]
test eax, eax
jne 0x402bbb
push 3
push 0x401210
push ebx
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpNW]
test eax, eax
je 0x402bbb
push esi
push ebx
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x402ba8
push eax
push 1
mov edx, 0x401208
mov ecx, ebx
call fcn.0040e401
test eax, eax
je 0x402ba8
mov ecx, 0xe7d
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
jmp 0x403157
mov ecx, ebx
call fcn.0040ed63
shr eax, 1
mov edx, esi
push eax
mov ecx, ebx
call fcn.0040e35d
mov ecx, ebx
call fcn.0040f9d8
cmp eax, 1
jne 0x402bef
mov ecx, edi
call fcn.0040e3f2
test eax, eax
je 0x402bef
mov ecx, 0x313
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
lea eax, [ebp - 0xec4]
mov edx, edi
push eax
push dword [ebp - 0xecc]
lea eax, [ebp - 0x290]
mov ecx, ebx
push eax
lea eax, [ebp - 0x890]
push eax
call fcn.004052aa
test eax, eax
je 0x403146
lea ecx, [ebp - 0x290]
call fcn.00404f7f
mov esi, eax
mov dword [ebp - 0xec8], esi
test esi, esi
jne 0x402c80
mov eax, dword [0x41248c]
test al, 1
je 0x402c40
or eax, 0x21
jmp 0x402c43
or eax, 0x20
push eax
mov dword [0x41248c], eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
jne 0x403146
mov ecx, 0x8d
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
jmp 0x403146
push 0xff
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0xc90]
call fcn.0040e35d
mov ecx, esi
call fcn.0040f4ff
cmp eax, 0x14
jb 0x402cac
mov ecx, 0x314
jmp 0x4030de
mov edx, dword [ebp - 0xee0]
test edx, edx
je 0x4030db
cmp edx, eax
ja 0x4030db
dec edx
mov ecx, esi
call fcn.0040f556
mov edi, eax
mov ecx, edi
call fcn.0040e3f2
lea ecx, [eax*2 + 4]
call fcn.0040ebd3
mov esi, eax
mov dword [ebp - 0xed0], esi
test esi, esi
jne 0x402d04
push 2
call fcn.00411dc9
pop ecx
mov edx, 0x20001
mov ecx, eax
call fcn.0040d7c6
jmp 0x402c32
mov ecx, esi
call fcn.0040ed63
shr eax, 1
mov edx, edi
push eax
mov ecx, esi
call fcn.0040e35d
push 0x3d
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
xor eax, eax
push 0x22
mov word [edi], ax
add edi, 2
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
lea esi, [eax + 2]
mov ecx, esi
mov dword [ebp - 0xecc], esi
call fcn.0040e3f2
test eax, eax
je 0x402d58
xor eax, eax
mov word [esi], ax
add esi, 2
mov dword [ebp - 0xecc], esi
mov ecx, esi
call fcn.0040e3f2
mov ecx, edi
mov esi, eax
call fcn.0040e3f2
mov ecx, dword [ebp - 0xed0]
add esi, eax
call fcn.0040e3f2
add eax, esi
cmp dword [ebp - 0xd64], 0
mov dword [ebp - 0xee8], eax
jne 0x402e84
push ecx
mov edx, 0x40123c
mov ecx, edi
call fcn.0040df49
mov ecx, edi
call fcn.0040e3f2
cmp eax, 0x3b
jbe 0x402db8
push 0x3b
mov edx, edi
lea ecx, [ebp - 0xa90]
call fcn.0040e35d
lea edi, [ebp - 0xa90]
mov ecx, 0xe7c
call fcn.0040d995
push edi
push eax
push 0x401240
lea eax, [ebp - 0x490]
push 0xff
push eax
call fcn.00401be0
add esp, 0x14
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov ecx, dword [ebp - 0xecc]
mov esi, eax
call fcn.0040e3f2
mov ecx, dword [ebp - 0xed0]
add esi, eax
call fcn.0040e3f2
inc eax
add eax, esi
cmp eax, 0xfe
jbe 0x402f0a
mov ecx, 0xe80
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
mov eax, dword [0x41248c]
test al, 1
je 0x402e3d
or eax, 0x21
jmp 0x402e40
or eax, 0x20
push eax
mov dword [0x41248c], eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
jne 0x402e74
mov ecx, 0x8d
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
lea ecx, [ebp - 0xed0]
call fcn.0040eb2f
jmp 0x40313b
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov ecx, edi
mov esi, eax
call fcn.0040e3f2
mov ecx, dword [ebp - 0xee8]
add ecx, esi
sub ecx, eax
inc ecx
cmp ecx, 0xfe
ja 0x402e12
mov esi, 0xff
lea ecx, [ebp - 0x490]
mov edi, 0x40123c
push esi
mov edx, edi
call fcn.0040e35d
push ecx
xor edx, edx
lea ecx, [ebp - 0x90]
call fcn.0040df49
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
test eax, eax
je 0x402efa
push esi
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x490]
call fcn.0040e3bd
push esi
mov edx, edi
lea ecx, [ebp - 0x490]
call fcn.0040e3bd
jmp 0x402f0f
mov esi, 0xff
mov edx, dword [ebp - 0xed0]
lea ecx, [ebp - 0x690]
push esi
call fcn.0040e35d
push esi
mov edx, 0x401250
lea ecx, [ebp - 0x690]
call fcn.0040e3bd
push esi
lea edx, [ebp - 0x490]
lea ecx, [ebp - 0x690]
call fcn.0040e3bd
push esi
mov edx, 0x401254
lea ecx, [ebp - 0x690]
call fcn.0040e3bd
mov edx, dword [ebp - 0xecc]
lea ecx, [ebp - 0x690]
push esi
call fcn.0040e3bd
lea ecx, [ebp - 0xed0]
call fcn.0040eb2f
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov ecx, dword [ebp - 0xec8]
lea edx, [ebp - 0x690]
push eax
call fcn.0040f1fd
mov ecx, dword [ebp - 0xec8]
lea edx, [ebp - 0xed4]
call fcn.00405791
cmp eax, 1
jne 0x402ff7
mov eax, dword [0x41248c]
test al, 1
je 0x402fb5
or eax, 0x21
jmp 0x402fb8
or eax, 0x20
push eax
mov dword [0x41248c], eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
jne 0x402fec
mov ecx, 0x8d
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
lea ecx, [ebp - 0xed4]
jmp 0x402e7a
lea eax, [ebp - 0xc90]
push eax
push dword [ebp - 0xed4]
push 0x401218
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_1.dll_WritePrivateProfileSectionW]
test eax, eax
je 0x4030b9
push dword [ebp - 0xee0]
mov ecx, 0xce
call fcn.0040d995
push eax
push 1
push 1
push 1
call fcn.00411dc9
pop ecx
push eax
call fcn.0040e6ab
mov eax, dword [0x41248c]
add esp, 0x14
test al, 1
je 0x40304b
or eax, 0x21
jmp 0x40304e
or eax, 0x20
push eax
mov dword [0x41248c], eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
jne 0x403086
mov ecx, 0x8d
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
xor esi, esi
jmp 0x403089
xor esi, esi
inc esi
lea ecx, [ebp - 0xed4]
call fcn.0040eb2f
lea ecx, [ebp - 0xec8]
call fcn.0040f1de
cmp dword [ebp - 0xec4], 0
je 0x40315a
push ecx
mov ecx, ebx
call fcn.0041005b
jmp 0x40315a
mov ecx, 0x86
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
jmp 0x402fa7
push 0x7d
pop ecx
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
mov eax, dword [0x41248c]
test al, 1
je 0x403104
or eax, 0x21
jmp 0x403107
or eax, 0x20
push eax
mov dword [0x41248c], eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
jne 0x40313b
mov ecx, 0x8d
call fcn.0040d995
push 2
mov esi, eax
call fcn.00411dc9
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040e454
lea ecx, [ebp - 0xec8]
call fcn.0040f1de
cmp dword [ebp - 0xec4], 0
je 0x403157
push ecx
mov ecx, ebx
call fcn.0041005b
xor esi, esi
inc esi
lea ecx, [ebp - 0xee4]
call fcn.0040eb2f
lea ecx, [ebp - 0xed8]
call fcn.0040eb2f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004117f0
leave
ret