Function at 0x43f250
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x24
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x43f530
push ebx
push esi
push 0x4f1414
push eax
call fcn.00479140
mov esi, dword [esp + 0x3c]
add esp, 8
mov eax, dword [esi + 4]
test eax, eax
je 0x43f50a
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x43f50a
test edx, edx
jle 0x43f50a
push ebp
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
jmp 0x43f2b8
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 4]
add ebp, ecx
mov ecx, 0x4f1410
test ecx, ecx
mov dword [esp + 0x20], ebp
je 0x43f4d6
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
call esi
mov ebx, eax
test ebx, ebx
je 0x43f4d6
mov edx, 0x4f1408
test edx, edx
jne 0x43f2f0
mov dword [esp + 0x14], edx
jmp 0x43f2fb
push 0x4f1408
call esi
mov dword [esp + 0x14], eax
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x1c], eax
jae 0x43f4d6
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f1410
push esi
call edi
add esp, 8
test eax, eax
je 0x43f348
mov edx, dword [esp + 0x10]
lea esi, [eax + ebx*2]
inc edx
push 0x4f1410
push esi
mov dword [esp + 0x18], edx
call edi
add esp, 8
test eax, eax
jne 0x43f32d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x43f318
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x43f4d2
mov esi, dword [ebp]
cmp dword [esi - 0xc], 1
jle 0x43f3a4
mov ecx, ebp
call fcn.00408f10
mov ecx, dword [esi - 8]
push ecx
mov ecx, ebp
call fcn.00408d60
test eax, eax
je 0x43f3a4
mov edx, dword [esi - 8]
mov edi, dword [ebp]
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
mov eax, dword [esp + 0x14]
mov esi, dword [ebp]
sub eax, ebx
imul eax, dword [esp + 0x10]
mov ecx, dword [esi - 8]
mov dword [esp + 0x18], ecx
add eax, ecx
mov ecx, dword [esi - 4]
mov dword [esp + 0x10], eax
cmp ecx, eax
jl 0x43f3cc
cmp dword [esi - 0xc], 1
jle 0x43f40d
lea edi, [esi - 0xc]
push eax
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.00408d60
test eax, eax
je 0x43f4d2
mov ecx, dword [edi + 4]
mov edi, dword [ebp]
shl ecx, 1
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00416e00
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
mov eax, dword [esp + 0x10]
mov esi, dword [ebp]
mov ecx, dword [esi - 8]
lea ecx, [esi + ecx*2]
cmp esi, ecx
mov dword [esp + 0x1c], ecx
jae 0x43f4cc
jmp 0x43f42a
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f1410
push esi
call edi
mov edi, eax
add esp, 8
test edi, edi
je 0x43f4b1
mov eax, dword [ebp]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x18]
sar edx, 1
sub eax, edx
lea ecx, [edi + ebx*2]
sub eax, ebx
lea ebp, [eax + eax]
mov eax, dword [esp + 0x14]
push ebp
push ecx
lea esi, [eax + eax]
lea eax, [esi + edi]
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, esi
mov esi, 0x4f1408
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x4f1410
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x40]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x2c]
add ebp, eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov ebp, dword [esp + 0x34]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x43f43b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x43f424
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov edi, dword [esp + 0x24]
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
mov ecx, dword [edi + 0x2c]
push edx
push eax
push str.TempUrl
push ecx
call fcn.00478ce0
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add esp, 0x10
add ebp, 0xc
dec eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
jne 0x43f2b4
pop ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [edi + 0x30]
push 0x80
push esi
call ebx
mov edx, dword [edi + 0x2c]
push 0
push edx
call fcn.00478fc0
add esp, 8
push 2
push esi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x24
ret 4