Function at 0x406c6c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], eax
lea ebx, [ebp - 0xa0]
mov edi, 0x48fac4
mov eax, 0x491e08
call fcn.0047fb84
mov edx, 0x48e1e0
mov eax, 0x49965c
call fcn.0048c628
push 0
cmp dword [0x49965c], 0
je 0x406cbb
mov edx, dword [0x49965c]
jmp 0x406cc1
lea edx, [edi + 0x63d]
push edx
call fcn.004066d8
add esp, 8
cmp dword [0x49965c], 0
push 0x80
je 0x406cdf
mov eax, dword [0x49965c]
jmp 0x406ce5
lea eax, [edi + 0x63e]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x406db0
mov word [ebx + 0x10], 8
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.0048c5b4
push eax
inc dword [ebx + 0x1c]
lea edx, [edi + 0x63f]
lea eax, [ebp - 0x1c]
call fcn.0048c42c
inc dword [ebx + 0x1c]
xor edx, edx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x24]
inc dword [ebx + 0x1c]
pop edx
call fcn.0048c650
lea eax, [ebp - 0x24]
push eax
lea edx, [edi + 0x65f]
lea eax, [ebp - 0x28]
call fcn.0048c42c
mov edx, eax
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
inc dword [ebx + 0x1c]
pop eax
call fcn.0048c650
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
call fcn.0045bf88
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0048c5f8
mov word [ebx + 0x10], 0x20
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
inc dword [ebx + 0x1c]
mov dword [ebp - 8], edx
inc dword [ebx + 0x1c]
inc dword [ebx + 0x1c]
inc dword [ebx + 0x1c]
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov word [ebx + 0x10], 0x14
mov ecx, dword [0x499658]
push ecx
push eax
call fcn.00406740
add esp, 8
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
test edx, edx
jns 0x406dfd
add edx, 3
sar edx, 2
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0x350]
call fcn.0047257c
xor esi, esi
jmp 0x40732b
mov word [ebx + 0x10], 0x44
xor edx, edx
mov dword [ebp - 0x38], edx
lea edx, [ebp - 0x38]
inc dword [ebx + 0x1c]
mov eax, esi
shl eax, 2
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0041cf38
mov word [ebx + 0x10], 0x38
mov word [ebx + 0x10], 0x50
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x3c]
inc dword [ebx + 0x1c]
mov eax, esi
shl eax, 2
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0041d000
mov word [ebx + 0x10], 0x38
lea edx, [esi + 1]
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x350]
call fcn.0047258c
lea edx, [edi + 0x682]
cmp dword [0x499658], 0
push edx
je 0x406e90
mov ecx, dword [0x499658]
jmp 0x406e96
lea ecx, [edi + 0x683]
push ecx
lea eax, [ebp - 0x38]
push eax
call fcn.00408f04
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x406eb1
mov edx, dword [ebp - 0x38]
mov eax, dword [edx - 4]
jmp 0x406eb3
xor eax, eax
test eax, eax
je 0x406f01
push 0
xor edx, edx
mov word [ebx + 0x10], 0x5c
mov dword [ebp - 0x44], edx
lea edx, [ebp - 0x38]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x44]
mov eax, 0x49965c
call fcn.0048c650
cmp dword [ebp - 0x44], 0
je 0x406ee2
mov ecx, dword [ebp - 0x44]
jmp 0x406ee8
lea ecx, [edi + 0x684]
push ecx
call fcn.004066d8
add esp, 8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0048c5f8
mov dword [ebp - 0xac], 1
mov word [ebx + 0x10], 0x38
mov word [ebx + 0x10], 0x68
xor eax, eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x48]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x38]
mov eax, 0x49965c
call fcn.0048c650
lea eax, [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x40]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x3c]
call fcn.0048c650
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0048c5f8
mov word [ebx + 0x10], 0x38
mov eax, dword [ebp - 0x40]
call fcn.0041cea8
xor ecx, ecx
mov cl, al
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xb0], 0
je 0x407057
mov edx, esi
lea ecx, [ebp - 0xe8]
mov eax, edx
push ecx
shl eax, 2
add eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x406f94
mov edx, dword [eax]
jmp 0x406f9a
lea edx, [edi + 0x685]
push edx
call fcn.0048257c
add esp, 8
lea eax, [ebp - 0x10c]
push eax
cmp dword [ebp - 0x40], 0
je 0x406fb5
mov ecx, dword [ebp - 0x40]
jmp 0x406fbb
lea ecx, [edi + 0x686]
push ecx
call fcn.0048257c
mov eax, dword [ebp - 0xcc]
add esp, 8
cmp eax, dword [ebp - 0xf0]
mov eax, dword [sym.udins.exe__FormUSBIme]
setne dl
and edx, 1
mov dword [ebp - 0xac], edx
mov eax, dword [eax + 0x358]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x40703b
mov ecx, dword [ebp - 0xf0]
lea edx, [edi + 0x687]
push ecx
xor ecx, ecx
mov eax, dword [ebp - 0xcc]
push eax
push edx
mov word [ebx + 0x10], 0x74
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x4c]
inc dword [ebx + 0x1c]
push eax
call fcn.0048c748
add esp, 0x10
mov edx, dword [eax]
push edx
call fcn.00402e94
pop ecx
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0048c5f8
push 0x80
cmp dword [ebp - 0x40], 0
je 0x40704b
mov ecx, dword [ebp - 0x40]
jmp 0x407051
lea ecx, [edi + 0x696]
push ecx
call sub.KERNEL32.DLL_SetFileAttributesA
cmp dword [ebp - 0xac], 0
je 0x40728c
push 0
mov eax, esi
mov edx, dword [ebp - 0x40]
shl eax, 2
push edx
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
call fcn.00402f0c
add esp, 0xc
mov word [ebx + 0x10], 0x38
test eax, eax
je 0x407114
push 0x80
cmp dword [ebp - 0x40], 0
je 0x40709b
mov eax, dword [ebp - 0x40]
jmp 0x4070a1
lea eax, [edi + 0x697]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov word [ebx + 0x10], 0x80
lea edx, [edi + 0x698]
lea eax, [ebp - 0x50]
call fcn.0048c42c
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x54]
inc dword [ebx + 0x1c]
mov dword [ebp - 0xb4], esi
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0x50]
shl eax, 2
add eax, dword [ebp - 0x18]
call fcn.0048c650
lea edx, [ebp - 0x54]
mov eax, dword [edx]
push eax
call fcn.00402e94
pop ecx
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0048c5f8
jmp 0x4072f4
cmp dword [ebp - 0xb0], 0
jne 0x407213
mov word [ebx + 0x10], 0x8c
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
lea eax, [ebp - 0x5c]
call fcn.0048c5b4
push eax
inc dword [ebx + 0x1c]
lea edx, [edi + 0x6a3]
lea eax, [ebp - 0x58]
call fcn.0048c42c
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x60]
inc dword [ebx + 0x1c]
pop edx
call fcn.0048c650
lea eax, [ebp - 0x60]
push eax
lea edx, [edi + 0x6d6]
lea eax, [ebp - 0x64]
call fcn.0048c42c
mov edx, eax
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x68]
inc dword [ebx + 0x1c]
pop eax
call fcn.0048c650
lea eax, [ebp - 0x68]
mov eax, dword [eax]
call fcn.0045bf88
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0048c5f8
jmp 0x407343
mov word [ebx + 0x10], 0x98
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
lea eax, [ebp - 0x70]
call fcn.0048c5b4
push eax
inc dword [ebx + 0x1c]
lea edx, [edi + 0x6f7]
lea eax, [ebp - 0x6c]
call fcn.0048c42c
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x74]
inc dword [ebx + 0x1c]
pop edx
call fcn.0048c650
lea eax, [ebp - 0x74]
mov eax, dword [eax]
push eax
call fcn.00402e94
pop ecx
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0048c5f8
jmp 0x4072f4
mov word [ebx + 0x10], 0xa4
lea edx, [edi + 0x70a]
lea eax, [ebp - 0x78]
call fcn.0048c42c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x78]
inc dword [ebx + 0x1c]
mov dword [ebp - 0xb8], esi
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0x7c]
shl eax, 2
add eax, dword [ebp - 0x18]
call fcn.0048c650
lea edx, [ebp - 0x7c]
mov ecx, dword [edx]
push ecx
call fcn.00402e94
pop ecx
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0048c5f8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0048c5f8
mov word [ebx + 0x10], 0x14
inc esi
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
test ecx, ecx
jns 0x407338
add ecx, 3
sar ecx, 2
cmp esi, ecx
jb 0x406e18
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 0x364]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x40737a
push 6
cmp dword [0x49965c], 0
je 0x40736e
mov ecx, dword [0x49965c]
jmp 0x407374
lea ecx, [edi + 0x711]
push ecx
call sub.KERNEL32.DLL_SetFileAttributesA
dec dword [ebx + 0x1c]
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call fcn.004073f4
mov word [ebx + 0x10], 0x14
dec dword [ebx + 0x1c]
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
sub edx, eax
test edx, edx
jns 0x4073ac
add edx, 3
sar edx, 2
mov dword [ebp - 0xc4], edx
mov esi, eax
test esi, esi
je 0x4073df
mov edi, dword [ebp - 0xc4]
shl edi, 2
cmp edi, 0x80
jbe 0x4073d5
push esi
call fcn.0047eae4
pop ecx
jmp 0x4073df
push edi
push esi
call fcn.0048cf74
add esp, 8
dec dword [ebx + 0x1c]
dec dword [ebx + 0x1c]
mov eax, dword [ebx]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret