Function at 0x401a80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d04
call fcn.0040a6e0
push ebx
push esi
push edi
mov dword [ebp - 8], 0x402d10
mov dword [ebp - 4], 0x402d30
call fcn.00402db0
mov dword [ebp - 0x10], 0x402d40
mov dword [ebp - 0xc], 0x402d60
lea eax, [ebp - 0x24]
push eax
call fcn.00403240
push 0
lea eax, [ebp - 0x4ccc]
push eax
call fcn.00403630
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x418384]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f50
test eax, eax
jne 0x401b1b
mov eax, dword [0x41837c]
test eax, eax
je 0x401afc
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004030c0
test eax, eax
jne 0x401b1b
mov dword [ebp - 0x4d04], 0
jmp 0x401b25
mov dword [ebp - 0x4d04], 0xb
cmp dword [ebp - 0x4d04], 0
jne 0x401b43
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4cbc], eax
lea eax, [ebp - 0x4ccc]
push eax
call fcn.00403670
lea eax, [ebp - 0x78]
push eax
call fcn.00403960
cmp dword [ebp - 0x4d04], 0
je 0x401b73
cmp byte [0x418374], 0
jne 0x4020de
mov eax, dword [ebp - 0x4d04]
push eax
call fcn.00401940
jmp 0x4020de
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x4ccc]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00405bd0
mov dword [ebp - 0x4d04], eax
test eax, eax
jne 0x401b55
or dword [ebp - 0x4cd0], 0xffffffff
mov dword [ebp - 0x4cd4], 0
mov dword [ebp - 0x4cd8], 0
mov dword [0x418390], 0
mov dword [0x418394], 0
mov dword [0x418388], 0
mov dword [0x41838c], 0
cmp dword [ebp - 0x5c], 0
jbe 0x401e0c
xor ebx, ebx
mov dword [0x418390], 0
mov dword [0x418394], 0
mov dword [ebp - 0x4cf4], 0
mov eax, dword [ebp - 0x4cf4]
add eax, dword [ebp - 0x68]
cmp byte [eax + 0x19], 0
je 0x401c21
add dword [0x418390], 1
adc dword [0x418394], 0
jmp 0x401c44
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add eax, dword [0x418390]
adc edx, dword [0x418394]
add eax, 1
adc edx, 0
mov dword [0x418390], eax
mov dword [0x418394], edx
add dword [ebp - 0x4cf4], 0x20
inc ebx
cmp ebx, dword [ebp - 0x5c]
jb 0x401c02
mov dword [ebp - 0x4ce0], 0
mov dword [ebp - 0x4cdc], 0
cmp dword [ebp - 0x5c], 0
ja 0x401e25
mov dword [0x418388], 0
mov dword [0x41838c], 0
jmp 0x4020c3
mov dword [ebp - 0x4d04], 0xb
jmp 0x4020c3
cmp byte [0x418374], 0
jne 0x401f47
mov eax, dword [ebp - 0x4cfc]
lea esi, [ebp + eax*2 - 0x694]
push esi
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.00404f70
cmp byte [0x418398], 0
jne 0x401ccb
push esi
call fcn.004019a0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x4ce8]
push eax
lea eax, [ebp - 0x4ce4]
push eax
lea eax, [ebp - 0x4cd8]
push eax
lea eax, [ebp - 0x4cd4]
push eax
lea eax, [ebp - 0x4cd0]
push eax
push ebx
lea eax, [ebp - 0x4ccc]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00405c10
mov dword [ebp - 0x4d04], eax
test eax, eax
jne 0x4020c3
xor edi, edi
jmp 0x401d39
cmp word [esi + edi*2], 0x2f
jne 0x401d38
mov word [esi + edi*2], 0
lea eax, [ebp - 0x694]
push eax
call fcn.00410120
mov word [esi + edi*2], 0x5c
inc edi
cmp word [esi + edi*2], 0
jne 0x401d19
mov eax, dword [ebp - 0x4d00]
cmp byte [eax + 0x19], 0
je 0x401ec9
lea eax, [ebp - 0x694]
push eax
call fcn.00410120
cmp byte [0x417724], 0
je 0x401d74
lea eax, [ebp - 0x694]
push eax
push 1
call dword [0x413ff4]
add dword [0x418388], 1
adc dword [0x41838c], 0
call fcn.004019f0
jmp 0x401dfa
mov eax, dword [ebp - 0x4ce8]
inc eax
xor edx, edx
add eax, dword [0x418388]
adc edx, dword [0x41838c]
mov dword [0x418388], eax
mov dword [0x41838c], edx
call fcn.004019f0
jmp 0x401dfa
mov eax, dword [ebp - 0x4ce8]
inc eax
xor edx, edx
add eax, dword [0x418388]
adc edx, dword [0x41838c]
mov dword [0x418388], eax
mov dword [0x41838c], edx
call fcn.004019f0
jmp 0x401dfa
mov eax, dword [ebp - 0x4d00]
cmp byte [eax + 0x1d], 0
je 0x401dfa
mov eax, dword [ebp - 0x4d00]
mov eax, dword [eax + 0x14]
push eax
lea eax, [ebp - 0x694]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add dword [ebp - 0x4cf8], 0x20
inc ebx
cmp ebx, dword [ebp - 0x5c]
jb 0x401e45
jmp 0x4020c3
mov dword [0x418390], 0
mov dword [0x418394], 0
jmp 0x401c51
xor ebx, ebx
mov dword [0x418388], 0
mov dword [0x41838c], 0
mov dword [ebp - 0x4cf8], 0
mov dword [ebp - 0x4ce4], 0
mov dword [ebp - 0x4ce8], 0
mov eax, dword [ebp - 0x4cf8]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x4d00], eax
push 0
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.00404f70
mov esi, eax
lea ecx, [ebp - 0x694]
mov edx, dword [0x418380]
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x401e85
pop eax
lea eax, [ebp - 0x694]
push eax
call fcn.00410020
lea edx, [ebp - 0x694]
or eax, 0xffffffff
inc eax
cmp word [edx + eax*2], 0
jne 0x401eaa
mov dword [ebp - 0x4cfc], eax
cmp esi, 0x104
jb 0x401c97
jmp 0x401c88
mov eax, dword [ebp - 0x4d00]
cmp byte [eax + 0x1c], 0
je 0x401ef2
mov eax, dword [ebp - 0x4d00]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4ce0], eax
mov eax, dword [ebp - 0x4d00]
mov eax, dword [eax]
mov dword [ebp - 0x4cdc], eax
lea eax, [ebp - 0x4cdc]
push eax
lea eax, [ebp - 0x4ce0]
push eax
mov eax, dword [ebp - 0x4ce8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x694]
push eax
call dword [0x418378]
cmp eax, 1
je 0x401f25
cmp eax, 2
je 0x401f2c
xor eax, eax
jmp 0x401f35
mov eax, 1
jmp 0x401f35
mov byte [0x418374], 1
xor eax, eax
cmp byte [0x418374], 0
jne 0x401f47
test eax, eax
je 0x401f56
jmp 0x401d89
mov dword [ebp - 0x4d04], 2
jmp 0x4020c3
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x4cec]
push eax
call fcn.00402f70
test eax, eax
je 0x401fd4
push 0x61c
lea eax, [ebp - 0xcb0]
push eax
push str.errorcreatefile
call dword [0x413fdc]
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xcb0]
push eax
call fcn.0040b9e0
add esp, 8
push 0x116
push 0x4174f8
lea eax, [ebp - 0xcb0]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x401fca
jl 0x401fd4
cmp eax, 0xa
je 0x401f56
cmp eax, 0xb
je 0x401db0
jmp 0x401fd4
mov dword [ebp - 0x4d04], 0xb
mov eax, dword [ebp - 0x4ce8]
mov dword [ebp - 0x4cf0], eax
lea eax, [ebp - 0x4cf0]
push eax
mov eax, dword [ebp - 0x4ce4]
add eax, dword [ebp - 0x4cd4]
push eax
lea eax, [ebp - 0x4cec]
push eax
call fcn.00403040
test eax, eax
jne 0x402012
mov eax, dword [ebp - 0x4cf0]
cmp eax, dword [ebp - 0x4ce8]
je 0x402055
push 0x61c
lea eax, [ebp - 0xcb0]
push eax
push 0x4116d8
call dword [0x413fdc]
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xcb0]
push eax
call fcn.0040b9e0
add esp, 8
lea eax, [ebp - 0xcb0]
push eax
call fcn.0040fff0
mov dword [ebp - 0x4d04], 0xb
mov eax, dword [ebp - 0x4ce8]
inc eax
xor edx, edx
add eax, dword [0x418388]
adc edx, dword [0x41838c]
mov dword [0x418388], eax
mov dword [0x41838c], edx
call fcn.004019f0
mov eax, dword [ebp - 0x4d00]
cmp byte [eax + 0x1c], 0
je 0x4020a0
lea eax, [ebp - 0x4cdc]
push eax
lea eax, [ebp - 0x4ce0]
push eax
lea eax, [ebp - 0x4cec]
push eax
call fcn.004032b0
lea eax, [ebp - 0x4cec]
push eax
call fcn.00402f90
cmp dword [ebp - 0x4d04], 0
jne 0x4020c3
test eax, eax
je 0x401dd7
mov dword [ebp - 0x4d04], eax
mov eax, dword [ebp - 0x4cd4]
push eax
lea eax, [ebp - 8]
push eax
call dword [ebp - 4]
cmp dword [ebp - 0x4d04], 0
jne 0x401b55
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004039a0
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f90
mov eax, dword [ebp - 0x4d04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret