Function at 0x40b7e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4390a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
test edx, edx
je 0x40ba0f
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b820
sub ecx, esi
sar ecx, 1
je 0x40ba0f
push edx
lea ecx, [ebp - 0x20]
call fcn.00404240
mov byte [ebp - 4], 1
mov eax, dword [0x444008]
mov ecx, 0x444008
mov dword [ebp - 0x24], 0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [0x444008]
mov ecx, 0x444008
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
push 0x44108c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d6b0
mov byte [ebp - 4], 4
mov edx, dword [eax]
lea ebx, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x40b8e1
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x40b8d2
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x40b8d2
call fcn.0040af70
mov dword [ebp - 0x28], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40b8ca
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + reloc.wininet.dll_FindNextUrlCacheEntryA]
mov eax, dword [ebp - 0x28]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x40b8e1
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.00404590
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
setne bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wininet.dll_FindNextUrlCacheEntryA]
test bl, bl
je 0x40b98c
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
push esi
mov dword [ebp - 0x1c], 1
call fcn.004044c0
push 1
push 0x44108c
lea ecx, [ebp - 0x18]
call fcn.004044c0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40b877
push str.CreateDirectoryW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b965
push 0
push edi
call eax
test eax, eax
jne 0x40b976
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b976
xor ebx, ebx
jmp 0x40b98f
xor eax, eax
je 0x40b877
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40b877
mov ebx, dword [ebp - 0x1c]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b9ad
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + reloc.wininet.dll_FindNextUrlCacheEntryA]
add esi, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b9cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.wininet.dll_FindNextUrlCacheEntryA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40ba0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.wininet.dll_FindNextUrlCacheEntryA]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret