Function at 0x412490
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42cba4
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xac
cmp byte [eax], 0
push ebx
push ebp
push esi
push edi
je 0x412988
xor edi, edi
xor eax, eax
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x4124cf
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 8
mov bl, 1
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], edi
mov word [esp + 0x64], 0
mov dword [esp + 0x68], edi
call fcn.004259f0
add esp, 4
cmp eax, edi
je 0x41292f
xor ecx, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], 3
mov word [eax], cx
mov esi, dword [esp + 0xcc]
mov dword [esp + 0xc4], edi
mov eax, dword [esi + 4]
add esi, 4
push eax
lea ecx, [esp + 0x40]
call fcn.00412dc0
test al, al
jne 0x412566
mov dword [esp + 0xc4], 0xffffffff
mov edx, dword [esp + 0x64]
push edx
call fcn.004259b6
add esp, 4
jmp 0x4128fe
mov eax, dword [esp + 0x5c]
mov ecx, eax
shr ecx, 4
test cl, 1
jne 0x412581
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x412549
shr eax, 0xa
test al, 1
je 0x41258a
xor bl, bl
mov dword [esp + 0xc4], 0xffffffff
mov eax, dword [esp + 0x64]
push eax
call fcn.004259b6
add esp, 4
test bl, bl
je 0x4128a0
push esi
lea esi, [esp + 0x18]
call fcn.0040e8d0
mov dword [esp + 0xc4], 1
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
jne 0x4125df
mov ecx, eax
shr ecx, 1
lea eax, [ecx + eax + 0x10]
and eax, 0xfffffff0
dec eax
push eax
call fcn.0040e470
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea ebx, [eax + 1]
mov edx, 0x5c
mov word [ecx + eax*2], dx
xor eax, eax
mov ebp, ebx
mov dword [esp + 0x30], ebx
mov word [ecx + ebx*2], ax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0xffffffff
mov byte [esp + 0xc4], 2
push 8
mov dword [esp + 0x28], edi
call fcn.004259f0
add esp, 4
cmp eax, edi
je 0x412944
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 3
mov word [eax], cx
lea edx, [esp + 0x14]
push edx
lea esi, [esp + 0x28]
mov byte [esp + 0xc8], 3
call fcn.0040e9d0
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x2c], eax
jne 0x412670
mov ecx, eax
shr ecx, 1
lea eax, [ecx + eax + 0x10]
and eax, 0xfffffff0
dec eax
push eax
call fcn.0040e470
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, 0x2a
mov word [ecx + eax*2], dx
inc eax
xor edx, edx
lea esi, [esp + 0x74]
mov word [ecx + eax*2], dx
mov dword [esp + 0x28], eax
call fcn.00411560
mov byte [esp + 0xc4], 4
jmp 0x4126a2
xor edi, edi
cmp dword [esp + 0x20], 0xffffffff
je 0x4126b8
lea esi, [esp + 0x74]
lea eax, [esp + 0x20]
call fcn.00412b50
jmp 0x4126ca
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
call fcn.00412a50
test al, al
je 0x412855
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0xa0]
shr ecx, 4
test cl, 1
je 0x41270c
test edi, edi
je 0x41270c
mov esi, dword [esp + 0x9c]
cmp word [esi], 0x2e
jne 0x412713
cmp edi, 1
je 0x4126a0
cmp edi, 2
jne 0x412713
cmp word [esi + 2], 0x2e
je 0x4126a0
jmp 0x412713
mov esi, dword [esp + 0x9c]
cmp ebx, ebp
jae 0x412727
mov eax, dword [esp + 0x14]
mov ebp, ebx
xor edx, edx
mov dword [esp + 0x18], ebp
mov word [eax + ebx*2], dx
mov eax, dword [esp + 0x1c]
sub eax, ebp
cmp edi, eax
jbe 0x4127ad
lea eax, [edi + ebp]
mov ecx, eax
shr ecx, 1
lea esi, [ecx + eax + 0x10]
and esi, 0xfffffff0
dec esi
cmp esi, ebp
jb 0x41296e
cmp esi, 0x40000000
jae 0x41296e
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.004259f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412959
mov ecx, dword [esp + 0x14]
lea eax, [ebp + ebp + 2]
push eax
push ecx
push ebx
call fcn.00429520
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call fcn.004259b6
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xa0]
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [edi + edi + 2]
push ecx
lea eax, [eax + ebp*2]
push esi
push eax
call fcn.00429520
mov edx, dword [esp + 0xa0]
add ebp, edi
shr edx, 4
add esp, 0xc
mov dword [esp + 0x18], ebp
test dl, 1
je 0x412835
lea eax, [esp + 0x14]
push eax
call fcn.004118e0
test al, al
jne 0x4126a0
push esi
call fcn.004259b6
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.004259b6
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
add esp, 4
cmp eax, esi
je 0x41281a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41281a
mov dword [esp + 0x20], esi
mov dword [esp + 0xc4], esi
mov edx, dword [esp + 0x14]
push edx
call fcn.004259b6
add esp, 4
xor edi, edi
jmp 0x4128fe
mov ebx, dword [esp + 0x14]
call fcn.00411830
test al, al
je 0x41284b
mov ebx, dword [esp + 0x30]
jmp 0x4126a0
mov eax, dword [esp + 0x9c]
push eax
jmp 0x4127eb
mov eax, dword [esp + 0x9c]
push eax
call fcn.004259b6
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.004259b6
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
add esp, 4
cmp eax, esi
je 0x41288c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41288c
mov dword [esp + 0x20], esi
mov dword [esp + 0xc4], esi
mov edx, dword [esp + 0x14]
push edx
call fcn.004259b6
add esp, 4
cmp byte [0x4395bd], 0
mov ebx, dword [esp + 0xcc]
mov eax, dword [ebx + 4]
jne 0x4128e2
push eax
lea esi, [esp + 0xb0]
call fcn.0040ef80
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov eax, dword [esp + 0xac]
push eax
call fcn.004259b6
add esp, 4
cmp esi, edi
jne 0x4128ee
jmp 0x4128fe
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4128fe
mov eax, dword [ebx + 4]
call fcn.004113a0
test al, al
jne 0x412985
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, 0x100
jb 0x4124c4
xor al, al
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb8
ret 4
push 0x433900
lea ecx, [esp + 0x16]
xor al, al
push ecx
mov byte [esp + 0x1a], al
call fcn.0042a55f
push 0x433900
lea edx, [esp + 0x17]
xor al, al
push edx
mov byte [esp + 0x1b], al
call fcn.0042a55f
xor al, al
mov byte [esp + 0x11], al
push 0x433900
lea eax, [esp + 0x15]
push eax
call fcn.0042a55f
push 0x4338cc
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0x13329ad
call fcn.0042a55f
mov byte [ebx], 0
mov al, 1
jmp 0x412914